Daniel Hjertholm · @dhjertholm
8 followers · 27 posts · Server fosstodon.org

: What will be printed?

#pythonquiz

Last updated 1 year ago

What will be the right choice?

#pythonquiz #python #pythonprogramming

Last updated 2 years ago

Python quiz

What is the output?

A. 10
B. 2
C. Syntax error
D. 5

#python #pythonquiz #python3 #pythonprogramming

Last updated 2 years ago

Python quiz

What is the output?

A. 5
B. 2
C. Syntax error
D. None

#python #pythonquiz #python3 #pythonprogramming

Last updated 2 years ago

Python quiz

a. [1, 4]
[1, 4, 5]

b. [1, 4, 5]
[1, 4, 5]

c. [1, 4]
[1, 4]


#python #pythonprogramming #pythontips #programmer #python3 #pythonquiz

Last updated 2 years ago

Python quiz

What is the result

A. Invalid syntax, should use 'if' for condition
B. [80,73,82,64]
C. [True, True, True, True, False]
D. [80]

#pythonquestion #python #python3 #pythonquiz #programmers

Last updated 2 years ago

: What will be the output of the below code?

Options:

A. 24
2

B. 17
8

C. 24
8

D. 17
2

#pythonquiz #pythonprogramming #python #coding #programming

Last updated 2 years ago

🐍 Python quiz

What is the language that never gets printed ?

A. Golang
B. Java
C. Python
D. Python and JavaScript
E. Java and JavaScript

#python #pythonprogramming #python3 #pythonquiz

Last updated 2 years ago

Python quiz time

What is the result?

A.
0 Sunday
1 Monday
2 None
3 None
4 None
5 None
6 None

B.
0 Sunday
1 Monday

C.
1 Sunday
2 Monday
3 None
4 None
5 None
6 None
7 None

D.
Gives error since list size mismatched

#python #pythonquiz #python3 #pythonprogramming

Last updated 2 years ago

🐍 Python quiz

What is the result and why?

#pythonquiz #python #python3 #pythonprogramming

Last updated 2 years ago

🐍 Test your python skills

Let us see if you can solve this python quiz

90% of beginners will fail in this...

#python #pythonprogramming #python3 #datascience #MLOps #pythonquiz #coding

Last updated 2 years ago

MiaPlan.de · @miaplan
33 followers · 280 posts · Server social.tchncs.de

Heute machen wir ein kleines PythonQuiz. Wer kann erklären, wie die folgende Ausgabe zustande kommt und wie man das Problem beheben kann?

def f(i):
print(i)

l = []
for i in range(3):
l.append(lambda: f(i))

for g in l:
g()

Ausgabe:
2
2
2

#python #pythonquiz

Last updated 2 years ago

MiaPlan.de · @miaplan
33 followers · 282 posts · Server social.tchncs.de

Heute machen wir ein kleines PythonQuiz. Wer kann erklären, wie die folgende Ausgabe zustande kommt und wie man das Problem beheben kann?

def f(i):
print(i)

l = []
for i in range(3):
l.append(lambda: f(i))

for g in l:
g()

Ausgabe:
2
2
2

#python #pythonquiz

Last updated 2 years ago