+ 2

Calculating in python

What is the different between print (100//2) or print(100/2).

2nd Dec 2022, 6:50 PM
‎‏‪‎‏‪‎‏‪‏‪‏‪‏‪‏‪Loay Shaar‬‏‬‏‬‏‬‏‬‏‎‬‏‎‬‏‎
‎‏‪‎‏‪‎‏‪‏‪‏‪‏‪‏‪Loay Shaar‬‏‬‏‬‏‬‏‬‏‎‬‏‎‬‏‎ - avatar
2 Respuestas
+ 4
// floor or integer division operator / float or precision division operator in python. 100//2 = 50 (int type) And 101//2 = 50 100/2 = 50.0 (float type) And 101/2 = 50.5
2nd Dec 2022, 6:56 PM
Jayakrishna 🇮🇳
+ 1
Who can code a 3d game for me
3rd Dec 2022, 8:37 PM
Sharifa Osman
Sharifa Osman - avatar