• Cours
  • Compilateur de code
  • Discuter
  • Tarification
  • Équipes
Menu
0

def my_func(x): assert x > 0 , "Error!" print(x)

I got an error "x is not defined"

assertions
21st Aug 2019, 5:01 PM
Rupal Raut
2 Réponses
0
https://www.sololearn.com/learn/JUMP_LINK__&&__Python__&&__JUMP_LINK/2286/
21st Aug 2019, 10:42 PM
Solo
Solo - avatar

Vous avez souvent des questions comme celle-ci ?

Apprenez de maniĂšre plus efficace, gratuitement :

  • Introduction Ă  Python

    7.1M apprenants

  • Introduction Ă  Java

    4.7M apprenants

  • Introduction Ă  C

    1.5M apprenants

  • Introduction Ă  HTML

    7.5M apprenants

Voir tous les cours
Aujourd'hui en vedette
I have finished first in Saturn League 3 times in a row, why have I not been given the badge for “Intergalactic Champion”
4 Votes
I am new
1 Votes
Changing String Variables into int in C++
0 Votes
Python intermediate help with dictionaries
0 Votes
Fill in the blank to declare a static variable.
0 Votes
Marquee
1 Votes
What are the advantages and disadvantages of using let vs var when declaring variables in JavaScript?
0 Votes
RUST'S FUTURE
1 Votes
Any Advise?
1 Votes
Popsacles Aufgabe
1 Votes