In python does it possible to check multiple expression using assertion | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

In python does it possible to check multiple expression using assertion

19th Jan 2018, 1:06 PM
Ashish Gupta
Ashish Gupta - avatar
3 Answers
+ 2
Yes assert {expression} and {expression} Something like this: assert 1 == 1 and False
13th May 2018, 8:48 PM
Nick Farley
Nick Farley - avatar
+ 1
try to connect the expression with "and" operator
19th Jan 2018, 7:43 PM
Tim
Tim - avatar
0
show me an example
26th Apr 2018, 1:51 PM
Bkj
Bkj - avatar