Last active
September 26, 2019 16:23
-
-
Save erran/688cfb4374e77beb50034c3fb2444180 to your computer and use it in GitHub Desktop.
Twitter question about syntax error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def main(): | |
input('Please enter all information in the order listed. Press ENTER to continue.') | |
emp1 = str(input('Employee 1: Employee Name, SSN, Phone Number, Email, Salary ')) | |
emp2 = str(input('Employee 2: Employee Name, SSN, Phone Number, Email, Salary ')) | |
emp3 = str(input('Employee 3: Employee Name, SSN, Phone Number, Email, Salary ')) | |
emp4 = str(input('Employee 4: Employee Name, SSN, Phone Number, Email, Salary ')) | |
emp5 = str(input('Employee 5: Employee Name, SSN, Phone Number, Email, Salary ')) | |
employee_list = [emp1, emp2, emp3, emp4, emp5] | |
print_employee = str(input('What would you like to do next? Type Employee # to print employee info- ie -employee 1-. Type -yes- to enter more employees. Type any key following by enter to exit ')) | |
if print_employee == 'employee 1': print(employee_list[0]) | |
if print_employee == 'employee 2': print(employee_list[1]) | |
if print_employee == 'employee 3': print(employee_list[2]) | |
if print_employee == 'employee 4': print(employee_list[3]) | |
if print_employee == 'employee 5': print(employee_list[4]) | |
if print_employee == 'yes': main() | |
else: | |
exit() | |
# uncomment the next line to run on the command line using `python twitter-question.py` | |
#main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment