831 views
0 0 votes
Python3 and Python2 seems so similar, and the only changes which are obvious are some changes in functions such as print that now needs parentheses. Are there other improvements?
50% Accept Rate Accepted 31 answers out of 62 questions

1 Answer

0 0 votes

There is a list of great features many do not use yet. Here is the list of some of them:

  • f-strings (3.6+)
  • Pathlib (3.4+)
  • Type hinting (3.5+)
  • Enumerations (3.4+)
  • Built-in LRU cache (3.2+)
  • Extended iterable unpacking (3.0+)
  • Data classes (3.7+)
  • Implicit namespace packages (3.3+)

This article shows some examples, and you can take the notebook for your test from this GitHub page.

Related questions

0 0 votes
1 1 answer
815
815 views
tofighi asked Jul 9, 2019
815 views
1 1 vote
1 1 answer
1.3k
1.3k views
askdatascience asked Aug 26, 2018
1,311 views
What are the best resources for studying Python?
1 1 vote
1 1 answer
5.5k
5.5k views
1 1 vote
1 1 answer
920
920 views
0 0 votes
1 1 answer
664
664 views
wxeshetu asked Oct 29, 2018
664 views