707 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
652
652 views
tofighi asked Jul 9, 2019
652 views
1 1 vote
1 1 answer
1.2k
1.2k views
askdatascience asked Aug 26, 2018
1,190 views
What are the best resources for studying Python?
1 1 vote
1 1 answer
5.4k
5.4k views
1 1 vote
1 1 answer
741
741 views
0 0 votes
1 1 answer
526
526 views
wxeshetu asked Oct 29, 2018
526 views