Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python3
- # paulogp
- # condicao: if
- the_a = 20
- the_b = 10
- # method 1
- if (the_a < the_b):
- print("{} is less than {}".format(the_a, the_b))
- else:
- print("{} is not less than {}".format(the_a, the_b))
- # method 2
- print("{} is less than {}".format(the_a, the_b) if the_a < the_b else "{} is not less than {}".format(the_a, the_b))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement