Jump to content


Photo

Python thread

Python

This topic has been archived. This means that you cannot reply to this topic.
No replies to this topic

#1 AlexINF

AlexINF

    All the good things have an end.

  • Members
  • PipPipPip
  • 913 posts

Posted 17 August 2015 - 01:40 PM

Talk here about python and help me too! Please.

 

DON'T TALK ABOUT OTHER THINGS! You will be ignored.


I'm making a Password thing for locking .txt Files. Working now on that!


Problem:

import time
print("Username")
User = raw_input("")
print("Password")
Pass = raw_input("")
if User = Alex82 and Pass = key :
print("Welcome back, ", User)
time.sleep(5)

Does not work. It justs crashes
Fixed:
import time
print("Username")
User = raw_input("")
print("Password")
Pass = raw_input("")
if User == "Alex82" and Pass == "key" :
print("Welcome back,", User)
time.sleep(5)

Spoiler


Spoiler to see the full starting part.