Computer Science, asked by shubham86187, 3 months ago

write a well indented python program using while loop to print the following

GOOD LUCK

Answers

Answered by SherlockHolmes221b
0

Answer:

while True:

print("GOOD LUCK")

break

OR

msg = "GOOD LUCK"

n = 0

while n < len(msg):

print(msg [n], end="")

n =+1

Explanation:

first one is just a simple one

second one uses a for loop like logic to:

print each letter of variable msg ("GOOD LUCK")

Similar questions