New ask Hacker News story: Ask HN: Is Python getting too complicated for its own good? - Gadgets180™

It is a technical blog/website and you will get here all the technical stuff and we also post some tech news.

Header Ads

Post Top Ad

Responsive Ads Here

New ask Hacker News story: Ask HN: Is Python getting too complicated for its own good?

Share This
Ask HN: Is Python getting too complicated for its own good?
3 by behnamoh | 5 comments on Hacker News.
For example, the following are valid modern Python code: var: str = "Haha" print(f"{var:_>20}") print(f"{var:*^20}") print(f"{str.lower() = }") def concatenate[T: (str, bytes)](first: T, second: T) -> T: return first + second items = [1, 2, 3] items [:]=[] items = [1, 2, 3] items *=0 bowl = ['water'] drink ,= bowl n = 3 ['a', 'b', 'c', *n* ['.']] #> ['a', 'b', 'c', '.', '.', '.'] a, *_ = (1,2,3)

Don't forget to subscribe our youtube channel Click here:- http://www.youtube.com/c/techgk Product of the day

No comments:

Post a Comment

Post Bottom Ad

Responsive Ads Here

Pages