• Cursos
  • Compilador de Código
  • Debatir
  • Precios
  • Teams
Menu
0

How does this code work? (Python)

def is_even(x): if x == 0: return True else: return is_odd(x-1) def is_odd(x): return not is_even(x) print(is_odd(17)) print(is_even(23))

python?
4th Jun 2020, 3:59 PM
3.14
3.14 - avatar
1 Respuesta

¿Tienes a menudo preguntas como esta?

Aprende gratis de forma más eficaz

  • Introducción a Python

    7,1M de estudiantes

  • Introducción a Java

    4,7M de estudiantes

  • Introducción a C

    1,5M de estudiantes

  • Introducción a HTML

    7,5M de estudiantes

Ver todos los cursos
En tendencia hoy
Code suggestions
3 Votes
Sololearn Theme Changing
0 Votes
How to access private creations
0 Votes
please who can help with some key points about web design
0 Votes
I am new in python
0 Votes
From Tomorrow my AI and Data science course will be started what should I do to make it best for my own self and Development in
0 Votes
what do you call knowing something without realizing you know it?
0 Votes
Can we collab?
1 Votes
working with list > Game Machine
0 Votes
Calculator
0 Votes