Questions tagged [thonny]

Thonny is a beginner-friendly Python IDE; hence there may be questions here tagged with [thonny] that really have nothing to do with the IDE itself but are a proxy tag for something like [python-beginner]. The [thonny] tag should be used for IDE-related issues, which probably don't belong here.

Thonny is a beginner-friendly Python IDE; hence there may be questions here tagged with [thonny] that really have nothing to do with the IDE itself but are a proxy tag for something like [python-beginner]. The [thonny] tag should be used for IDE-related issues, which probably don't belong here.

158 questions
-1
votes
1 answer

Reversing a List Comprehension

sorry for the beginners question but I've spent too long messing about with this so far andI'm sure it's a simple solution. So For the exercise I am changing this simple list comprehension back to a for loop : numbers = [n for n in…
Sly_Lamp
  • 47
  • 1
  • 6
-1
votes
2 answers

How To Use Comparison Operator with IntVar Variables Set With Radio Buttons in global space?

Recently got stuck on a part of my code which doesn't seem to make much sense to me. I'm busy with a program with multiple Screens to monitor a water process. In a Setup Page, There are radio button options To select the amount of Filters (1-4)…
Adriaan vS
  • 43
  • 5
-1
votes
1 answer

Get floating point inputs from user until negative number is entered, then compute sum, average, max, and min, without including negative number

Apologies, first time poster, and beginner python user. The problem asks the following: Write a Python program that allows the user to enter any number of nonnegative floating-point values. The user terminates the input list with any negative value.…
Saetion
  • 3
  • 1
  • 4
-2
votes
1 answer

Is there a way to trick a lambda command to execute three functions in tkinter?

I basically have a lot of different canvases that are all consequent to the other in order to create a game-like study guide. I wrote all canvases in functions given that it is schoolwork and with the click of every button the current canvas ereases…
Rogupe
  • 3
  • 3
-2
votes
1 answer

MicroPython count button clicks after 5 presses

I'm trying to count button click but only after 5 clicks and after the fifth click it will print the clicks BUT starting at 1. Example: Press button = 1 click Press button = 2 click Press button = 3 click Press button = 4 click Press button =…
SoggyCashew
  • 69
  • 1
  • 4
  • 15
-2
votes
2 answers

in tkinter how do i get a number into an entry

Im a beginner in Python and running into the following problem: for an assignment i need to get the number that gets inserted into text1, then when i push the button pk<<
d25
  • 15
  • 5
-2
votes
1 answer

UnboundLocalError: local variable 'tickets_per_person' referenced before assignment but 'tickets_per_person' assigned as a global variable

I keep getting this error: UnboundLocalError: local variable 'tickets_per_person' referenced before assignment. However I have assigned the variable tickets_per_person as a global variable at the top of my code so i do not understand why it…
Sam White
  • 7
  • 2
1 2 3
10
11