New course!
Every coder should learn
Generative AI!
Try a free lesson
Courses
Courses
Code Compiler
Code Compiler
Discuss
Get Pro
Teams
Log in
Register
Menu
Q&A Discussions
Search
Search
Ask a question
Ask a question
What's the use of //= ,&= ,|= ,^= ,>>= ,<<= operators in python?
comparisionoperators
python
19 Votes
33 Answers
12th Jun 2020, 1:38 PM
Thayani Gathirvelou🇱🇰
def ChangeVal(M,N): for i in range(N): if M[i]%5 = = 0: M[i] //= 5 if M[i]%3 = = 0: M[i] //= 3 L=[25,8,75,12] ChangeVal(L
python
-4 Votes
2 Answers
5th Oct 2020, 4:31 AM
Arpan Pradhan
n = int(input()) length = 0 while n > 0: n //= 10 length += 1 print(length)
python3
0 Votes
4 Answers
17th Oct 2020, 2:46 AM
Rahul Prasad
Can anyone please tell me why it is needed to use x //= 10 inthis code
else
if
0 Votes
6 Answers
28th Nov 2020, 5:27 PM
Rahul
In Python 3 this symbols i don't understand (%=, /=, //=, -=, +=, *=, **=) please give me examples and explain also.
-=
**=
*=
//=
/=
%=
+=
1 Vote
3 Answers
7th Jun 2019, 11:27 AM
Rupak Barman
Ask a question
Ask a question
Ask a question
Ask a question
Hot today
Is the AI course worth the $49?
0 Votes
Notifications
6 Votes
Can anyone please help with this below code for python files
1 Votes
How private are "private" code snippets in Sololearn really?
1 Votes
Should I always mention name attribute inside <input type="" id="" name="" > ??
0 Votes
Where to use
0 Votes
Coding path
0 Votes
Scroll to bottom of page in Selenium with browser minimized
0 Votes
How to win bits
1 Votes
Blank screen when trying to but AI course on Apple 15 I phone,
0 Votes