Answer the question
In order to leave comments, you need to log in
Misunderstanding with if?
hello
, I’m learning Python, I’m trying to solve problems on codewars, I
ran into a misunderstanding: on the course, 80% of the if () option: is not used, however, in turn, the usual if is used much more often and also works.
when solving problems, codevars swears at the absence of ():, although in some solutions the pure if option works
the question: for what situations are both options used and what does their writing depend on?
Answer the question
In order to leave comments, you need to log in
if wastecan you provide both examples.
for what situations are both options used and what determines their spelling?It's written in Python books. For example, search for "Mark Lutz - Learning Python".
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question