Hi !
Can someone tell me why I have a syntax error ?
#!/usr/bin/python
ilogin = ""
ipassword = ""
def displayWelcome():
print"Welcome to your server"
print""
def getUserLogin():
return raw_input("Enter your login : ")
def getUserPass():
return raw_input("Enter your password : ")
def displayLogin(login, pass):
print "Login: " + login
print "Password: " + pass
return 0
displayWelcome()
ilogin = getUserLogin()
ipassword = getUserPass()
displayLogin(ilogin, ipass)
>>61236530
Because you put a space between your last word and your punctuation dipshit. Learn to write
>>61236557
What word ??
:/
Why did you not post this as code so we can see indentation? Is this post just false flagging bait?
>>61236530
Is that Java?
>>61236627
:)
>>61236530
Because there is no indentation
>>61236530
I think it might be because of
def displayLogin(login, pass):
pass is a keyword in python, not sure if you can use it like that. Try password instead
>>61236664
I would tell you what's wrong here but it's better that you just take some time and learn how to read the error message instead so you can solve this babby shit on your own next time
>>61236694
Also following on from this,
ipassword = getUserPass()
displayLogin(ilogin, ipass)
ipass doesn't match up with ipassword...
>>61236694
It's work !
thank you man !!
>>61236721
http://www.tutorialspoint.com/python/python_pass_statement.htm
>>61236721
Not doing your homework kyz
Why the fuck are you writing python 2 in babbies first python lmaoing at your life
https://www.youtube.com/watch?v=ULz3XJq9VF0
>>61236694
>>61236711
Neither of these are syntax errors
>>61236831
You comment is. Learn to put together a sentence, brainlet.
>>61236870
Are you special?
>>61236530
>raw_input
Use Python 3.6