Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

Operacoes Basicas 1

print("2 + 2 =",2 + 2)

print("5 + 4 - 1 =",5 + 4 - 1)

print("2 * (3 + 4) =",2 * (3 + 4))

print("1 + 2 * 3 / 4.0 =",1 + 2 * 3 / 4.0)

print("10 / 2 =",10 / 2)

print("(-7 + 2) * (-4) =",(-7 + 2) * (-4))

print("6 * 7.0 =",6 * 7.0)

print("2**5 =",2**5)

print("20 // 6 =",20 // 6)

print("1.25 % 0.5 =",1.25 % 0.5)

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.