0

What is meaning of// symbol can any one explain?

8th Jul 2016, 6:05 PM
Siddharth K
Siddharth K - avatar
3 ответов
+ 1
When you take for example 17 // 2 you get 8 because two fits in seventeen eight times. You can get the remainder with 17 % 2.
8th Jul 2016, 10:01 PM
Benjamin Doppler
0
It does NOT create a "comment" in the code, that's the symbol for comments in other programming languages, but not Python. It does division, but it drops the remainder. so 2//3 isn't 0.6666, it's just 0. 5//2 is 2, but 5/2 is 2.5
26th Jul 2016, 2:29 AM
Matthew Whitlock
Matthew Whitlock - avatar
- 1
// use for comment Which not included by preprocessor
17th Jul 2016, 3:58 PM
suraj chowdhury
suraj chowdhury - avatar