Question 6 - Week 4 Practice | Prasnya
Prasnya
Continue with Google
Practice path
Dashboard
Exam
Qualifier / Quiz 1
Go to subject
Programing with python
Go to chapter
Week 4
Question 6
00:00
Est. 2 min
Marks:
+3.00
0.00
Consider the following snippet of code. Assume that `1234` is passed as input to the code. What will be the output? ``` num = int(input("Enter a number")) s_num = 1 while num != 0: digit = num % 10 s_num = s_num * digit num //= 10 print(s_num) ```
Integer answer
Medium Difficulty
23 February 2025
Your answer