Mar-21-2020, 04:42 PM
(This post was last modified: Mar-21-2020, 04:59 PM by pythonuser1.)
(Mar-21-2020, 04:08 PM)ndc85430 Wrote: All you've done is define the function. You need to call it somewhere, supplying a value for the parameterrayon
. You'll probably also want to
Hello, thank you, like this ?
#!/usr/bin/python
from math import *
def aire(rayon):
A=pi*rayon**2
rayon=5
return(A)
print(A)
I still have nothing when I run python fonction.py
(Mar-21-2020, 04:11 PM)buran Wrote: note that star imports like from math import *
are generally discouraged
Hello, thank you, how do we know by what should we replace the star ? Is there a list somewhere ?