Ok so, I am a noob at Python, to clear the air. I am 15 and just started learning Python, thought this is the best programming langauge to start with. This might seem very stupid, but here, who can debug this or autocorrect it? :P
def firstlogin(x,y):
x=raw_input('Enter name: ')
if x == 'Bob':
return 'Hello there,press enter to go to the next test.'
y=raw_input('Enter pass: ')
if y == 'password':
return ('You are now free to *** this account up')
since def is a function in which you can make your own functions, to prevent from writing the same functions over and over again, and or basically just make your own function. but I can't open this when I save it as .py
. I think I have to input/import it into python when I want to use it for another project, or is there another way.
PS: self learning, I live in a country where I can't get programming language books any where :( .. so I surf the web.. use a little bit of Bucky's videos and etc.