• Kurse
  • Code Compiler
  • Diskutieren
  • Preise
  • Teams
Menu
0

Explain this function

def f(m,n): return m|n print (f(10,20)) #Outputs 30 Can you please explain the return statement. What is this "|" doing here resulting in =>30?

functionsfunction-argumentssololearnpython3codeplayground
5th Jan 2021, 9:12 AM
CHANDAN ROY
CHANDAN ROY - avatar
1 Antwort
+ 10
https://www.sololearn.com/Discuss/2609329/?ref=app
5th Jan 2021, 9:15 AM
Simba
Simba - avatar

Häufig solche Fragen?

Effizienter lernen, kostenlos:

  • Einführung in Python

    7.1M Lernende

  • Einführung in Java

    4.7M Lernende

  • Einführung in C

    1.5M Lernende

  • Einführung in HTML

    7.5M Lernende

Alle Kurse anzeigen
Heute heiß
Code is wrong somehow, I need help!
0 Votes
@sololearn Python
1 Votes
Can you give me some advice on what project I can start with today to practice HTML, CSS, and JavaScript?
0 Votes
Is the Python Developer course the final course of Python?
0 Votes
Newb
0 Votes
Appointment Booking website
0 Votes
I am asking for your help, I need to optimisate my code.
0 Votes
Building an AI Call Tracking & Routing System — Anyone tried it?
0 Votes
Activate account
0 Votes
Is this for use
0 Votes