Bring Your Logic using Python
342 subscribers
109 photos
1 video
4 files
544 links
Logic building using Python : Materials, links, e-books and Code snippets
Download Telegram
#Tip

>>> a = 5
>>> b = 3
>>> print(f'{a/b = }')
a/b = 1.6666666666666667

#python 3.8+
Merge two dictionaries:
>>> a = {'one':1}
>>> b = {'one': 2, 'two': 2}
>>> {**a, **b}
{'one': 2, 'two': 2}

#Python 3.9:
>>> a|b
{'one': 2, 'two': 2}