L
L
Liage2021-07-02 19:19:33
Python
Liage, 2021-07-02 19:19:33

How could I mess up here?

I just don't see where I could have gone wrong...
print(z:=int(input("How much does a watermelon weigh?"))));
If ((z//2)==0 and z!=2):
print('Yes')
else:
print("No")

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denisca Gareev, 2021-07-02
@Liage

1. if with a small one.
2. not ":=" but "="

z = int(input("Сколько весит арбуз?"))

if ((z//2)==0 and z!=2):
    print('Yes')
else:
    print("No")

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question