Hello I need a flowchart made for reference
I am using flowgorithm
Here is the python code that I need a flowchart for
def get_user_input_validated():
"""
Module Name: get_user_input_validated
Parameters: None
Description: Defence program validates input as rock, paper or scissors
returns input in lowercase making input case insensitive
"""
choice=["rock","paper","scissors"]
while True:
user_choice = input("Please enter your choice (rock/paper/scissors):")
if user_choice.lower() in choice:
break
else:
print("Sorry - that selection is not valid.",end="")
return user_choice.lower()
Here is the function getUserInputValidated.
Get Answers For Free
Most questions answered within 1 hours.