Python Forum
validating user input and loops
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
validating user input and loops
#5
In line 11 of the above code, you define "input_string" as an empty string, where do you update it (prior to calling "is_valid_integer")?  What other variable might you use as an argument when calling that function?

If you have not covered lists, or you are confused by what you see, do not use it in your code. What will you do when your teacher asks you to explain to the class what you did and why you did it?
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
Reply


Messages In This Thread
validating user input and loops - by Austin11 - Nov-02-2017, 03:50 PM
RE: validating user input and loops - by Larz60+ - Nov-02-2017, 04:09 PM
RE: validating user input and loops - by Austin11 - Nov-02-2017, 04:51 PM
RE: validating user input and loops - by Larz60+ - Nov-02-2017, 07:25 PM
RE: validating user input and loops - by sparkz_alot - Nov-02-2017, 08:10 PM
RE: validating user input and loops - by Austin11 - Nov-02-2017, 08:11 PM
RE: validating user input and loops - by nilamo - Nov-02-2017, 08:34 PM
RE: validating user input and loops - by Austin11 - Nov-03-2017, 12:24 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
Question Simulate an answer based on user input [Beginner needs guidance] Bombardini 1 1,423 Nov-12-2022, 03:47 AM
Last Post: deanhystad
  Print user input into triangle djtjhokie 1 2,528 Nov-07-2020, 07:01 PM
Last Post: buran
  Changing Directory based on user input paulmerton4pope 13 8,510 Aug-14-2020, 11:48 AM
Last Post: GOTO10
  how to add the user input from file into list wilson20 8 4,524 May-03-2020, 10:52 PM
Last Post: Larz60+
  Writing a function that changes its answer based on user input SirRavenclaw 2 2,980 Dec-21-2019, 09:46 PM
Last Post: Clunk_Head
  Print the longest str from user input edwdas 5 4,382 Nov-04-2019, 02:02 PM
Last Post: perfringo
  how to add user input to a dictionary to a graph KINGLEBRON 3 3,202 Jul-31-2019, 09:09 PM
Last Post: SheeppOSU
  New to Python - tiny coding assistance on user input function and assign to variable Mountain_Duck 1 2,625 Mar-23-2019, 06:54 PM
Last Post: Yoriz
  Extracting list element with user input valve 1 2,671 Mar-11-2019, 07:37 PM
Last Post: Yoriz
  turtle polygon as specified by user input johneven 7 11,066 Mar-02-2019, 10:11 PM
Last Post: johneven

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020