Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Calculator problem
#5
Valitse operaatio (+, - , /, *): +
Anna luku 1: aasi
Ei tämä ole mikään luku
Anna luku 2: aasi
ei tämä ole mikään luku
Traceback (most recent call last):
File "C:\Users\Omistaja\Desktop\laskin.py", line 29, in <module>
luku_1, luku_2 = valitse_muuttujat()
File "C:\Users\Omistaja\Desktop\laskin.py", line 13, in valitse_muuttujat
return luku_1, luku_2
UnboundLocalError: local variable 'luku_1' referenced before assignment

Plus the problem with the "Tulos: none" is that there isnt any error message so the program works but it should only show "Tällä ohjelmalla ei pääse äärettömyyteen". I dont know if you guys understood but thanks for the help anyways
Reply


Messages In This Thread
Calculator problem - by BeginnerCoderPaero - Jun-28-2018, 06:03 PM
RE: Calculator problem - by j.crater - Jun-28-2018, 06:44 PM
RE: Calculator problem - by Larz60+ - Jun-28-2018, 07:53 PM
RE: Calculator problem - by buran - Jun-28-2018, 07:55 PM
RE: Calculator problem - by BeginnerCoderPaero - Jun-29-2018, 09:21 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  calculator app problem jacksfrustration 1 207 Apr-11-2024, 03:09 PM
Last Post: deanhystad
  Beginner. Calculator problem ¯\_(ツ)_/¯ stykus1992 0 2,355 Feb-15-2018, 11:01 AM
Last Post: stykus1992
  Tip calculator problem Dhaval 1 4,473 Jun-06-2017, 12:49 PM
Last Post: sparkz_alot

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020