Помогите исправить код (En) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Помогите исправить код (En)

Написал код который который должен при вводе правильного пароля выдавать определенную информацию, но он не работает, подскажите как исправить пожалуйста. I wrote a code that, when you enter the correct password, must give out certain information, but it does not work, please tell me how to fix it. language - python https://code.sololearn.com/cPDjOQ44LWWZ/?ref=app

9th Jan 2019, 2:40 PM
Rty Rty
8 Answers
+ 2
You don't have a colon (:) at the end of the if statement in line 2, and you shouldn't use the quotation marks around the variable "float". In fact, float is a bad variable name, as it's also a built-in function. Try this: passwd = input() if passwd == "qwerty123": print("Hello 123") Let me know if any of this confuses you 😊
9th Jan 2019, 4:20 PM
Kishalaya Saha
Kishalaya Saha - avatar
+ 2
You're welcome! 😊
10th Jan 2019, 2:37 AM
Kishalaya Saha
Kishalaya Saha - avatar
+ 1
Thank you very much! Code work perfect!
9th Jan 2019, 8:04 PM
Rty Rty
+ 1
Далее*
10th Jan 2019, 3:39 PM
LEM _ON Play
+ 1
А я HTML
10th Jan 2019, 3:50 PM
LEM _ON Play
0
Ребят я новенький подскажите пж чем отличается там Java и так далие
10th Jan 2019, 3:39 PM
LEM _ON Play
0
У разных языков разные особенности, правила, синтаксис. Я сам недавно начал изучать python, пока что вполне легко
10th Jan 2019, 3:49 PM
Rty Rty
0
И как?
10th Jan 2019, 5:24 PM
Rty Rty