Python program to get infinite inputs in shell or terminal | 2020

preview_player
Показать описание
Source Code:

# Program in Python to have Unlimited Input Lines for the user
print("Enter 'STOP' or 'Stop' or 'stop' to terminate or end the process of getting more lines to write.")
print("Now you could start writing!")
count=1
while True:
s= input("")
if s=="STOP" or s=="Stop" or s=="stop":
break
count+=1
print("Number of lines you've used are",count)

Music used in the video:-

Track: MAGNUS x Unread - Cool (feat. Alessia Labate) [NCS Release]
Music provided by NoCopyrightSounds.

Track: Aeden & Joellé - I Feel Crazy [NCS Release]
Music provided by NoCopyrightSounds.
Рекомендации по теме
Комментарии
Автор

Hope you guys enjoyed the video...! You could use this technique also to make a note down or a to-do list type stuff.!

sarthakstricks
Автор

And then the word stop is in your sentence and whoooops i wonder where everything i wrote went

Sam-dhki