#Python Pop Quiz 🐍❓
What is the output of the following code?
A) Python
B) Python rocks!
C) Python rocks! Python
D) Pythonrocks! Python
What is the output of the following code?
A) Python
B) Python rocks!
C) Python rocks! Python
D) Pythonrocks! Python
#Python Pop Quiz 🐍❓
What do you use to turn the
A)
@staticmethod
B)
@classmethod
C)
@property
D) None of the above
What do you use to turn the
amount() method into an attribute?A)
@staticmethod
B)
@classmethod
C)
@property
D) None of the above
#Python Pop Quiz 🐍❓
What does the following code print out?
A) Some kind of exception is raised
B) [(1, 'a'), (2, 'b'), (3, 'c')]
C) [(1, 'a'), (2, 'b'), (3, 'c'), (4, ''), (5, '')]
D) [(1, 'a'), (2, 'b'), (3, 'c'), (4, 'a'), (5, 'b')]
What does the following code print out?
A) Some kind of exception is raised
B) [(1, 'a'), (2, 'b'), (3, 'c')]
C) [(1, 'a'), (2, 'b'), (3, 'c'), (4, ''), (5, '')]
D) [(1, 'a'), (2, 'b'), (3, 'c'), (4, 'a'), (5, 'b')]
#Python Pop Quiz 🐍❓
What is the output of the following code?
A) [True, True, True, True]
B) [True, False, False, True]
C) [False, True, False, True]
D) [False, True, True, False]
What is the output of the following code?
A) [True, True, True, True]
B) [True, False, False, True]
C) [False, True, False, True]
D) [False, True, True, False]
#Python Pop Quiz 🐍❓
@WearebiTs
What is the output of this crazy code?
A) SyntaxError
B) *******************Python
C) Python*******************
D) *********Python**********
@WearebiTs
What is the output of this crazy code?
A) SyntaxError
B) *******************Python
C) Python*******************
D) *********Python**********
#Python Pop Quiz 🐍❓
What is the output when you run this code in the REPL?
@WearebiTs
A) True
B) False
C) Syntax Error
D) None of the above
What is the output when you run this code in the REPL?
@WearebiTs
A) True
B) False
C) Syntax Error
D) None of the above
Have you ever used the
It's a handy way to represent a set of indices. 🐍🚀
Here's an example.
@WearebiTs
slice() function in #Python?It's a handy way to represent a set of indices. 🐍🚀
Here's an example.
@WearebiTs
@WearebiTs
There's some new #Python syntax being debated in PEP 736 – Shorthand syntax for keyword arguments at invocation
What do you think?
There's some new #Python syntax being debated in PEP 736 – Shorthand syntax for keyword arguments at invocation
What do you think?
Forwarded from DLeX: AI Python
python2python3.pdf
668.2 KB
#Python Pop Quiz 🐍❓
What is the output of the following code?
@WearebiTs
A) [((1, 2),), ((3, 4),), ((5, 6),)]
B) [(1, 3, 5), (2, 4, 6)]
C) [(1, 2, 3, 4, 5, 6)]
D) None of the above
What is the output of the following code?
@WearebiTs
A) [((1, 2),), ((3, 4),), ((5, 6),)]
B) [(1, 3, 5), (2, 4, 6)]
C) [(1, 2, 3, 4, 5, 6)]
D) None of the above
Python Question / Quiz;
What is the output of the following Python code, and why? 🤔🚀 Comment your answers in this Group: https://xn--r1a.website/+vHq2KHlW8AljNTc0
#python #programming #developer #morioh #programmer #coding #coder #webdeveloper #webdevelopment #pythonprogramming #pythonquiz #machinelearning
Source: X
What is the output of the following Python code, and why? 🤔🚀 Comment your answers in this Group: https://xn--r1a.website/+vHq2KHlW8AljNTc0
#python #programming #developer #morioh #programmer #coding #coder #webdeveloper #webdevelopment #pythonprogramming #pythonquiz #machinelearning
Source: X
@WearebiTs
#Python Pop Quiz 🐍❓
What is the output of the following code?
A) 10.00
B) 10.13
C) 10.10
D) 10.20
X
#Python Pop Quiz 🐍❓
What is the output of the following code?
A) 10.00
B) 10.13
C) 10.10
D) 10.20
X
Forwarded from DLeX: AI Python (NaviD DariYa)