How many times is the word “Welcome” printed in the following code?
t = “i love python”
for ch in t[2:7]:
print (“Welcome”)
Answer:
The word “welcome” will be printed 5 times.
Short Answer Type Questions (2/3 Marks each)
Last updated at April 16, 2024 by Teachoo
Answer:
The word “welcome” will be printed 5 times.