0

–ö–į–ļ –Ī—É–Ľ–Ķ–≤–į –Ľ–ĺ–≥–ł–ļ–į —Ä–į–Ī–ĺ—ā–į–Ķ—ā —Ā str –Ņ–Ķ—Ä–Ķ–ľ–Ķ–Ĺ–Ĺ—č–ľ–ł

13th Jun 2021, 8:05 AM
–ī –ļ
–ī –ļ - avatar
9 Respostas
+ 4
word = input() if word == "–Ņ—Ä–į–≤–ī–į": my_bool_var = True else: my_bool_var = False print(my_bool_var)
13th Jun 2021, 8:17 AM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
+ 2
empty strings are evaluated as False non-empty strings are evaluated as True however, if you do: value = "" or "forty-two" the second string is assigned to value... as first is False if you do: value = "" and "forty-two" the first one is assigned (because false) if you do: value = "forty-two" and "" the second string is assigned (because first is True) and if you do: value = "forty-two" or "" the first is assigned because it's True ^^
13th Jun 2021, 8:16 AM
visph
visph - avatar
+ 2
–õ—é–Ī–ĺ–Ķ –∑–Ĺ–į—á–Ķ–Ĺ–ł–Ķ –į—Ä–≥—É–ľ–Ķ–Ĺ—ā–į str —Ā—á–ł—ā–į–Ķ—ā—Ā—Ź –Ľ–ĺ–≥–ł—á–Ķ—Ā–ļ–ł–ľ True, –ļ—Ä–ĺ–ľ–Ķ –Ņ—É—Ā—ā–ĺ–≥–ĺ –Ņ—Ä–ĺ—Ā—ā—Ä–į–Ĺ—Ā—ā–≤–į "" (–ě–Ĺ –∂–Ķ none) –ł–Ľ–ł –Ņ—Ä–ĺ–Ī–Ķ–Ľ–į " " —ć—ā–ĺ —Ā—á–ł—ā–į–Ķ—ā—Ā—Ź False
13th Jun 2021, 8:39 AM
Maxbro
Maxbro - avatar
+ 2
–ö–ĺ–Ĺ–ļ–į—ā–Ķ–Ĺ–į—Ü–ł—Ź... –ļ–ĺ–Ĺ–ļ–į—ā–Ķ–Ĺ–į—Ü–ł—Ź!
13th Jun 2021, 9:03 AM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
+ 2
–ē—Ā–Ľ–ł –ī–≤–Ķ —Ā—ā—Ä–ĺ–ļ–ł —Ä–į–≤–Ĺ—č,–Ĺ–į–Ņ—Ä–ł–ľ–Ķ—Ä "John"=="john"" => false "john"=="john" => true
14th Jun 2021, 1:26 PM
Jaxongir Masharipov
Jaxongir Masharipov - avatar
+ 1
–Ě–į–ī–Ķ—é—Ā—Ć —Ź –Ņ—Ä–į–≤–ł–Ľ—Ć–Ĺ–ĺ –Ņ–ĺ–Ĺ—Ź–Ľ –≤–ĺ–Ņ—Ä–ĺ—Ā. Str –Ņ–Ķ—Ä–Ķ–ľ–Ķ–Ĺ—č–Ķ –ľ–ĺ–∂–Ĺ–ĺ —Ā–ļ–ĺ–Ĺ–ļ–į—ā–Ķ–Ĺ–ł—Ä–ĺ–≤–į—ā—Ć —Ā –Ņ–Ķ—Ä–Ķ–ľ–Ķ–Ĺ–Ĺ—č–ľ–ł —ā–ł–Ņ–į boolean –Ķ—Ā–Ľ–ł —Ź –Ĺ–Ķ –Ņ–ĺ–Ĺ—Ź–Ľ –≤–į—ą –≤–ĺ–Ņ—Ä–ĺ—Ā –ľ–ĺ–∂–Ķ—ā–Ķ –∑–į–ī–į—ā—Ć –Ķ–≥–ĺ –ļ–ĺ–Ĺ–ļ—Ä–Ķ—ā–Ĺ–Ķ–Ķ
13th Jun 2021, 8:13 AM
SammE
SammE - avatar
+ 1
–Ę—Ć—Ą—É —Ź –∑–į–Ī—č–Ľ –Ņ—Ä–ĺ —Ā–ļ–ĺ–Ĺ–ļ–į—ā–Ķ–Ĺ–į—Ü–ł—é
13th Jun 2021, 8:15 AM
–ī –ļ
–ī –ļ - avatar
+ 1
Yaroslav Vernigora ūüėāūüėāūüėā, –Ņ–ĺ–Ĺ–ł–ľ–į–Ľ —ā–Ķ–Ī—Ź, –Ņ—Ä–ł–≥–ĺ—Ä–Ķ–Ľ–ĺūüėÖūüėÖūüėÖ
13th Jun 2021, 7:09 PM
–Ē–ł–ľ–į –ú–Ķ–Ľ—Ć–Ĺ–ł–ļ
–Ē–ł–ľ–į –ú–Ķ–Ľ—Ć–Ĺ–ł–ļ - avatar
+ 1
‚úĆ
14th Jun 2021, 4:29 PM
MikkyTech
MikkyTech - avatar