+ 2

Could anybody tell me about the use of python3.7 's latest 'walrus operator' ?

The walrus operator (:=) is the new operator 8n python 3.7 release (It's named so because it looks like the eyes and tusks of a walrus) I can't figure out its use via the py docs so can anybody tell its use in the codebase ?

python3:='walrus-operator'
21st Sep 2019, 9:22 PM
Rayyan Nafees
Rayyan Nafees - avatar
1 Answer
+ 2
https://code.sololearn.com/cC9Sczt5IILR/?ref=app https://code.sololearn.com/cmJDSvtmVp4Z/?ref=app https://code.sololearn.com/co16SIK91wbp/?ref=app
21st Sep 2019, 9:34 PM
Diego
Diego - avatar

Often have questions like this?

Learn more efficiently, for free:

  • Introduction to Python

    7.1M learners

  • Introduction to Java

    4.7M learners

  • Introduction to C

    1.5M learners

  • Introduction to HTML

    7.5M learners

See all courses
Hot today
would help me plz
4 Votes
How to output only even numbers? Given that x = 0 while x<=10: print(x) x+=1
1 Votes
JavaScript (\b)
2 Votes
Save elements in an array using localStorage
1 Votes
When I share my code to the public, it does not appear in general . It doesn't appear to everyone. ,Where is it the problem.
2 Votes
Why this code results in NaN?
0 Votes
Not working this code.
0 Votes
Submit Button Appears As Text Input
0 Votes
Im feeling very discouraged...
1 Votes
after three years I'm downloading this app again, I'm not sure what has changed. can you guys give me a short summary?
1 Votes
Follow us on Linkedin
Check out our facebook
See what we tweet about
Join our instagram
Watch our Youtube
HomeProFAQContactBug Bounty ProgramCareersTerms of UsePrivacy PolicySololearn mobile
Made with
by  Sololearn | ©2023