Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- password = '123'
- user_input = ''
- if user_input:
- if password == user_input and 2 * 2 == 4:
- print('Correct')
- else:
- print('Pls input smth')
- # *************************************************************************************
- # <
- # >
- # <=
- # >=
- # !=
- # or
- # and
- # not
- # *************************************************************************************
- # s = '12324'
- # if len(s)==4:
- # print('ok')
- # elif len(s)==3:
- # print('not ok')
- # else:
- # print('Chto')
- # *************************************************************************************
- # // Тернарный оператор - мало где используется, только если в очень простых ситуациях
- # print('Welcome') if user_input else print ('Wrong password')
- # *************************************************************************************
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement