821 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
806
806 views
tofighi asked Jul 9, 2019
806 views
1 1 vote
1 1 answer
1.3k
1.3k views
askdatascience asked Aug 26, 2018
1,306 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
910
910 views
0 0 votes
1 1 answer
656
656 views
wxeshetu asked Oct 29, 2018
656 views