0

Hi everyone.Can someone explain how you add or subtract on python playground? Thanks

simple operations

10th Jul 2019, 1:26 AM
Ash Adams
Ash Adams - avatar
3 Respostas
+ 6
Thanks to Google! This might help you 👇 https://www.digitalocean.com/community/tutorials/how-to-do-math-in-JUMP_LINK__&&__python__&&__JUMP_LINK-3-with-operators How To Do Math in Python 3 with Operators | DigitalOcean
10th Jul 2019, 2:18 AM
KingDaniel2004
KingDaniel2004 - avatar
+ 2
print(4+2) # 6 print(4-2) # 2 print(4*2) # 8 print(4/2) # 2.0
10th Jul 2019, 1:46 AM
Diego
Diego - avatar
+ 1
you can just do print(operation here)
10th Jul 2019, 1:30 AM
Pikachu
Pikachu - avatar