Category: Python3
Added: 11th of December 2020
Viewed: 95 times
When the user enters a number or character this is assigned to the variable number.
If the user enters a number, the number is displayed via the print statement. The break statement is used to terminate the current loop
If the user enters a character, a message is then displayed informing the user to an a number. The continue statement is used to return to the beginning of the while loop, and the user has to re-enter a number via the input command.
Other Tips & Tutorials
Python3
Learning Python3, Generate a random number using Python3Posted: 8th of December 2020
Views: 102
Python3
Learning Python 3, getting basic user input and printing the resultsPosted: 7th of December 2020
Views: 110
Python3
Create a new window using GTK and Python in Ubuntu and Ubuntu based distributionsPosted: 19th of November 2020
Views: 109
Python3
How to create a basic Python3 script in Ubuntu and Ubuntu based distributionsPosted: 28th of April 2020
Views: 462