FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
Python_Basics/python_programs/while_loop.py at master · learnbyexample/Python_Basics · GitHub
This repository was archived by the owner on Dec 29, 2020. It is now read-only.
learnbyexample
/
Python_Basics
Public archive
Notifications
You must be signed in to change notification settings
Fork
196
Star
614
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
Python_Basics
/
python_programs
/
while_loop.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
6 lines (5 loc) · 195 Bytes
Breadcrumbs
Python_Basics
/
python_programs
/
while_loop.py
Copy path
File metadata and controls
6 lines (5 loc) · 195 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
#!/usr/bin/python3
# continuously ask user input till it is a positive integer
usr_string
=
'not a number'
while
not
usr_string
.
isnumeric
():
usr_string
=
input
(
"Enter a positive integer: "
)
Back
|
FazBrowse Home
|
New Git URL