Video Tutorial shows the step by step guide to create a python program for taking input from user, until he gives a valid response. Stack overflow link : stackoverflow....
Пікірлер: 7
@abelwolf71412 жыл бұрын
thank you so much please keep making more python examples. i did your exact same code but i didnt have the continue the last one after the flag == True and print , i just left it like that without a continue , and the code worked fine
@meettewar9355 Жыл бұрын
Thanks bro! I got clue to finish my assignment with your codes.
@KhalilYasser3 жыл бұрын
Thanks a lot. The statement `flag = False` should be after `while True`. Try run your code and type a capital letter in the username then in the same execution type a valid username with lowercase, you will get the message `sorry, no capital letters` each time as flag is marked as True. so I think it will be better to put the flag=False after while True.
@bytive3 жыл бұрын
Thanks for the suggestion I agree with you, this will be more optimized version of code 😊
@frasercoyle97972 жыл бұрын
Thanks for the correction! I couldn't figure out how to resolve that issue until I read your comment.