Answer the question
In order to leave comments, you need to log in
How to shorten a condition in Python?
Just started to learn programming, so sorry for the noob question. I honestly googled and couldn't find it. Tell me how to make a short record for enumeration in a condition in Python.
Let's say we have a code:
x = 1
while x % 2 !=0 or x % 3 !=0 or x % 4 !=0:
x += 1
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question