filmov
tv
Python MCQ Quize | CodeAj #pythoncoding4u

Показать описание
Ready for a Python challenge? Test your skills with this brain-teasing question:
Answer
B) 20 10
Explanation
Python supports multiple assignment, allowing you to swap values in a single line. The expression 'a, b = b, a' swaps the values of 'a' and 'b', so 'a' becomes 20 and 'b' becomes 10.
Drop your answers in the comments! Let's see who can crack this Python puzzle! Don't forget to engage with us using these hashtags:
#codeaj
#codingchallenge #codingchallenge #codingchallenge #CodingChallenge
#codingCommunity
#codingchallenge #codingchallenge #codingchallenge #learncoding
#codingchallenge #codingchallenge #codingchallenge #codingchallenge #PythonCoding4U
Answer
B) 20 10
Explanation
Python supports multiple assignment, allowing you to swap values in a single line. The expression 'a, b = b, a' swaps the values of 'a' and 'b', so 'a' becomes 20 and 'b' becomes 10.
Drop your answers in the comments! Let's see who can crack this Python puzzle! Don't forget to engage with us using these hashtags:
#codeaj
#codingchallenge #codingchallenge #codingchallenge #CodingChallenge
#codingCommunity
#codingchallenge #codingchallenge #codingchallenge #learncoding
#codingchallenge #codingchallenge #codingchallenge #codingchallenge #PythonCoding4U