Azim Pulat
9.1K subscribers
119 photos
14 videos
1 file
147 links
Mentor @qirikki | 42.uz
Download Telegram
# sets
>x1 = {'foo', 'bar', 'baz'}
>x2 = {'baz', 'qux', 'quux'}

>x1 | x2 # same as x1.union(x2)
{'baz', 'quux', 'qux', 'bar', 'foo'}

> x1 & x2 # x1.intersection(x2)
{'baz'}

> x1 - x2 # x1.difference(x2)
{'foo', 'bar'}

> x1 ^ x2 # x1.symmetric_difference(x2)
{'foo', 'qux', 'quux', 'bar'}
To run python code without entering interactive shell for quick check or calculation, use -c flag

$ python -c "print(42**2)"
1764
Python was once offered to be used for interactive web pages (insted of js) if and only if it adopted curly braces instead of indentations.

To know what Guido responed, run:
>from __future__ import braces
> import numpy as np # is equivalent to
> np = __import__("numpy")
"""
import implements __import__ just as:
str implemens __str__
repr implements __repr__
len implements __len
__, you get the idea
"""
Happy programmers day πŸŽ‰πŸŽ‰πŸŽ‰
Forwarded from GDG Tashkent (Dostonkhon Ozodkhujaev)
Meet Azimjon Pulatov, who completed Google Cloud Study Jam Challenge and got his brand new Google Home Mini today! πŸ‘

The challenge is still on, so don't miss your chance to both learn a new skill and obtain a pleasant gift from Google!

Finish all 10 quests to complete the challenge. Submit your profile to get a Google Home Mini!

More information about the challenge at:
events.withgoogle.com/cloud-study-jam-challenge

@gdgtashkent
Happy Pi Day!
- knock knock
- race condition
- who is there?
Hammaga salom,

Bugun soat 8:30 (Toshkent vaqti bilan) qisqa va norasmiy problem solving bo'yicha workshop o'tqizyapman.

Qiziquvchilar bo'lsa tortinmasdan qo'shilinglar. O'zbek tilida bo'lib o'tadi.

https://zoom.us/j/4414759890?pwd=NFVmc1U5SjFjMzZaVEk4a2hXcWdqQT09

Ko'rishguncha πŸ˜‰
There is nothing more permanent than a temporary solution