#آموزش
(lambda x: x + 3)(3) # returns 6
🌟🌟🌟🌟42 in [ 2 , 39 , 42 ] # True
🌟🌟🌟🔴 For loop declaration
for i in [ 0 , 1 , 2 ]:
print(i)
🔴 While loop - same semantics
j = 0
while j < 3 :
print(j)
j = j + 1
🌟🌟🌟🌟y = x = 3
x is y # True
[ 3 ] is [ 3 ] # False
🌟🌟🌟[ 1 , 2 , 2 ].append( 4 ) # [1, 2, 2, 4]
[ 1 , 2 , 4 ].insert( 2 , 2 ) # [1, 2, 2, 4]
[ 1 , 2 , 2 ] + [ 4 ] # [1, 2, 2, 4]
فرهاد ناصری زاده
@farhad3412@raspberry_python