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.
Learn in your speed, with individual attention - Teachoo Maths 1-on-1 Class