Top Python Quiz Questions ๐Ÿ
1.69K subscribers
81 photos
4 links
๐ŸŽ“๐Ÿ”ฅ๐Ÿ’พ If you want to acquire a solid foundation in Python and/or your goal is to prepare for the exam, this channel is definitely for you.
๐ŸคณFeel free to contact us - @topProQ
And if you are interested in Java https://t.me/topJavaQuizQuestions
Download Telegram
Code snippet:
f=lambda x:bool(x%2)
print(f(20), f(21))
Code snippet:
import turtle
t=turtle.Pen()
for i in range(0,4):
t.forward(100)
t.left(120)
Code snippet:
def foo():
try:
return 1
finally:
return 2
k = foo()
print(k)
Code snippet:
a=[13,56,17]
a.append([87])
a.extend([45,67])
print(a)
๐Ÿ‘1
Code snippet:
A = [[1, 2, 3],
[4, 5, 6],
[7, 8, 9]]
[A[i][i] for i in range(len(A))]