Question: What will be printed by the following code snippet? 1 res = 12 is>than 1. 2 ans = res [-5:-1] 3 print (ans)
What will be printed by the following code snippet? 1 res = "12 is>than 1." 2 ans = res [-5:-1] 3 print (ans)
Step by Step Solution
There are 3 Steps involved in it
The code snippet youve provided is written in Python and it does the following 1 res is as... View full answer
Get step-by-step solutions from verified subject matter experts
