Sep-13-2019, 10:53 AM
(Sep-13-2019, 10:44 AM)hemal07yc Wrote: what is the output of the following code in Python 3.x environment?
x = "abcdef"
i = "i"
while i in x:
print(i, end=" ")
Options:
1. abcdef
2. Error
3. a b c d e f
4. No Output
Sorry, but that seems to be a very easy exercise, that you don't seem to have even tried to work it out.
All the best,
newbieAuggie2019
"That's been one of my mantras - focus and simplicity. Simple can be harder than complex: You have to work hard to get your thinking clean to make it simple. But it's worth it in the end because once you get there, you can move mountains."
Steve Jobs
"That's been one of my mantras - focus and simplicity. Simple can be harder than complex: You have to work hard to get your thinking clean to make it simple. But it's worth it in the end because once you get there, you can move mountains."
Steve Jobs