Click here to Skip to main content
15,896,497 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Im new in python and I cannot make an 2 expression in if statement
sample in java
if(x>100 || x<0)

how can I make this in python
:doh: :doh: :thumbsup::thumbsup:
Posted

1 solution

What about
if x>100 or x<0:

?
(just a guess based on "Non-Programmer's Tutorial for Python").
:)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900