Can anyone please tell me why it is needed to use x //= 10 inthis code | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can anyone please tell me why it is needed to use x //= 10 inthis code

Please help it🙏🙏🙏🙏 https://code.sololearn.com/chUOsW2EYNC6/?ref=app

28th Nov 2020, 5:27 PM
Rahul
Rahul - avatar
6 Answers
+ 1
x //=10 means x//10 or x=10 and x//10 means its just divide and rather than giving float it gives integer due to double slash ( //) if statement gives the value of same as above it runs the below condition
30th Nov 2020, 8:09 AM
Sayyam Jain
Sayyam Jain - avatar
0
What this code is about? But there x//10 causing to find number digits in x For 111 => 3 For 1234 =>4
28th Nov 2020, 5:37 PM
Jayakrishna 🇮🇳
0
This is to print what we describe when no. Is divisible by 4 having unit digit 0 and first digit 2
28th Nov 2020, 5:44 PM
Rahul
Rahul - avatar
0
B.t.w. tq verh much jayakrishna🙃
28th Nov 2020, 5:45 PM
Rahul
Rahul - avatar
0
Hope it helped to clear it.. You're welcome.. Rahul
28th Nov 2020, 7:42 PM
Jayakrishna 🇮🇳
0
Tq leaener
1st Dec 2020, 4:42 PM
Rahul
Rahul - avatar