Files
freeCodeCamp/curriculum/challenges/ukrainian/23-python-for-everybody/python-for-everybody/conditional-execution.md
2024-06-11 19:02:29 +02:00

748 B

id, title, challengeType, videoId, bilibiliIds, dashedName
id title challengeType videoId bilibiliIds dashedName
5e7b9f050b6c005b0e76f058 Використання умовних операторів 11 gz_IfIsZQtc
aid bvid cid
206949935 BV1Jh411z7bY 376337035
conditional-execution

--question--

--text--

Який код правильно відформатовано, щоб при його виконанні було надруковано "Yes" за умови, що x = 0 та y = 10?

--answers--

if 0 == x:
if y == 10:
print("Yes")

if 0 == x:
    if y == 10:
    print("Yes")

if 0 == x:
if y == 10:
    print("Yes")

if 0 == x:
    if y == 10:
        print("Yes")

--video-solution--

4