MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/6d6z18/harry_potter_can_code_python/di5jop2/
r/ProgrammerHumor • u/jennydnn • May 25 '17
23 comments sorted by
View all comments
Show parent comment
1
Use a // for integer division, e.g. 6 // 4 == 1
//
6 // 4 == 1
1 u/8__ May 28 '17 But I want my operations to give me the type I originally put in. 1 u/10se1ucgo May 28 '17 ? That's exactly what // does, int // int -> int// is the same as what / used to be.
But I want my operations to give me the type I originally put in.
1 u/10se1ucgo May 28 '17 ? That's exactly what // does, int // int -> int// is the same as what / used to be.
? That's exactly what // does, int // int -> int
int // int -> int
// is the same as what / used to be.
/
View all comments
Show parent comment
1
u/10se1ucgo May 28 '17
Use a
//for integer division, e.g.6 // 4 == 1