What's going on with my if-else statement? (Python 3.3)

前端 未结 4 589
终归单人心
终归单人心 2020-12-22 05:35

I\'m writing conditional statements for a billing program project. It\'s a bit advanced for a beginner I know but I welcome the challenge. Anyways, I plan on starting the pr

4条回答
  •  南笙
    南笙 (楼主)
    2020-12-22 06:26

    I think this code can help you

    from sys import argv
    
        username=raw_input("Enter user name")
        password=raw_input("Enter password")
    
        if(username=="VARUN" or "Varun" or "varun"):
            print "\n\tvalid Username "
        else:
            print "\n\tUsername already existes"
    
        if (password=="@ppu1131986"):
            print "\n\tPasssowrd matched"
        else:
            print "\n\tWeak Password"
    ~                              
    

提交回复
热议问题