+ 1

Can i ?

can I put two conditions in the same if statement? At example: if player == 'камень', bot == 'ножница': print ("You won")

7th May 2020, 11:43 AM
_nrkvv_
_nrkvv_ - avatar
2 Answers
+ 4
You can use 'or' respectively 'and' this depends on your program logic. So e.g.: if player == 'камень' and bot == 'ножница': And again, i want to encourage you to elaborate through the python tutorial, to get familiar with the basics.
7th May 2020, 11:59 AM
Lothar
Lothar - avatar
+ 1
You can use these operators to mix the conditions. https://www.sololearn.com/learn/JUMP_LINK__&&__Python__&&__JUMP_LINK/2279/
7th May 2020, 11:45 AM
你知道規則,我也是
你知道規則,我也是 - avatar