What will be the output of the following command in python?

a = "python"

i = "p"
while i in a:
    a= a[:-1]
    print(i, end = " ") 

1
i i i i i i
2
p y t h o n
3
p p p p p p
4
None of the above

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation