fork download
  1. a# zmienne w Pythonie
  2.  
  3. a=10
  4. b=20
  5. c=8
  6.  
  7. print(a+b+c)
  8. print((a+b+c)/3)
  9.  
  10. print("__________________")
  11.  
  12. dzien1=10
  13. dzien2=12
  14. dzien3=4
  15. dzien4=8
  16. liczba_dni=4
  17.  
  18. print("suma podanych km wynosi:",dzien1+dzien2+dzien3+dzien4)
  19. print("Średnia podanych km wynosi:",(dzien1+dzien2+dzien3+dzien4)/liczba_dni)
  20.  
  21.  
Runtime error #stdin #stdout #stderr 1.26s 37468KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "./prog.py", line 1, in <module>
NameError: name 'a' is not defined