Python Quiz #2 What is the output of this code snippet? A) 20 90 100 B) 20 20 20 C) 10 100 110 D) None of the above Answer for Quiz #1 in the thread 🧵👇

python_spaces's tweet image. Python Quiz #2

What is the output of this code snippet?

A) 20 90 100
B) 20 20 20
C) 10 100 110
D) None of the above

Answer for Quiz #1 in the thread 🧵👇

Solution for Quiz #1 Please watch the video till the end and let me know your thoughts. youtu.be/PmBxcXpoocE


That's a wrap! I hope you learnt something new today. Follow me @python_spaces for more such content. Like and RT the first tweet to share with your friends. Cheers 🎉

Python Quiz #2 What is the output of this code snippet? A) 20 90 100 B) 20 20 20 C) 10 100 110 D) None of the above Answer for Quiz #1 in the thread 🧵👇

python_spaces's tweet image. Python Quiz #2

What is the output of this code snippet?

A) 20 90 100
B) 20 20 20
C) 10 100 110
D) None of the above

Answer for Quiz #1 in the thread 🧵👇


Here is Quiz #1, if you haven't see

Python Quiz #1 What is the output of this code snippet? A) Error B) ['Python, 'Go'] C) ['Python', 'G', 'o'] D) None of the above

python_spaces's tweet image. Python Quiz #1 

What is the output of this code snippet?

A) Error
B) ['Python, 'Go']
C) ['Python', 'G', 'o']
D) None of the above


A is my answer, reply me the correct answer if I am wrong.


You are 100% correct


D. None of the above. Right answer= 20 100 100


you are very close.


A) 20 90 100 This should help you understand why 👇

SamuelOsondu_Py's tweet image. A) 20 90 100

This should help you understand why 👇

20, 90, 100... Number picks the latest value assigned. Func prints 90 since it's default is 0. Func(10) prints 100..hope my python awareness class is worth it...lol


A) 20 90 100 Explain: In print function, 1st number variable value is 20 as it is reassigned globally after assigning value to 10. 2nd func() execute function with number=0 value and code return (0+90=90) output 3rd func(10) provides number=10 as input and return (10+90=100)

anurag_nakhate's tweet image. A) 20 90 100

Explain:

In print function, 
1st number variable value is 20 as it is reassigned globally after assigning value to 10.
2nd func() execute function with number=0 value and code return (0+90=90) output
3rd func(10) provides number=10 as input and return (10+90=100)

(A) ✅️


The biggest take on this quiz, would be keyword arguments can only be declared after positional arguments


A) 20 90 100


United States Trendy
Loading...

Something went wrong.


Something went wrong.