Last active
August 29, 2015 13:57
-
-
Save Jasiri-w/9722368 to your computer and use it in GitHub Desktop.
Part1: The teaching of Python computer software.(Some extra editions added)
This file contains hidden or 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
#Okay, first withe the extra stuff. On the first line one type in: 'print("What is your name?")' or anything about what their name is. | |
#On the second line make a variable called nm (can be something else) and designate it to the string; 'input("Name: ")'. Don't forget to put the = after the variable. | |
#On line three type in: 'print("Welcome to windows " + nm)'. the nm has to be what you called your variable on line 2. | |
#For the real thing. On line 4 make the variable called 'Use = ' and for it the string: 'input("Username: ")'. | |
#On line 5 type: 'while Use = "Jasiri:"'. The username can be different. | |
#On line 6 (make sure the begining of the line is tabed)type: 'Use = input("Incorrect username. PLease try again. ")'and don't forget the space at the end. | |
#On line 7 (// // // // // // // is not tabed)type: 'print("Loading")' | |
#See bottom for example on everything that is said here above. And Make Sure To See Part 2!!! |
This file contains hidden or 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
print("What is your name?") | |
nm = input("Name: ") | |
print("Welcome to windows, " + nm) | |
Use = input("Username: ") | |
while Use == "Bob": | |
Use = input("Incorrect username. Please try again. ") | |
print("Loading...") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Awesome!!