980 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
968
968 views
tofighi asked Jul 9, 2019
968 views
1 1 vote
1 1 answer
1.4k
1.4k views
askdatascience asked Aug 26, 2018
1,442 views
What are the best resources for studying Python?
1 1 vote
1 1 answer
5.7k
5.7k views
1 1 vote
1 1 answer
1.1k
1.1k views
0 0 votes
1 1 answer
804
804 views
wxeshetu asked Oct 29, 2018
804 views