Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Tkinter and lambda
Post: RE: Tkinter and lambda

(Jan-18-2022, 04:18 PM)Yoriz Wrote: The lambda has been passed the return value of calling entry's get method so it will only ever contain that value which at that point will be empty as it has only...
Cristopher General Coding Help 4 2,238 Jan-18-2022, 05:47 PM
    Thread: Tkinter and lambda
Post: Tkinter and lambda

I'm trying to make a button with a simple function with a variable defined in another function. I want the program to check if the key the user entered is in a list or not, and show a message box acco...
Cristopher General Coding Help 4 2,238 Jan-18-2022, 03:54 PM
    Thread: General Knowledge Quiz in Python
Post: General Knowledge Quiz in Python

I've made a general knowledge quiz in Python with 10 multiple-choice questions. If you are bored or are up for a little game, this may be fun to play. If anyone decides to try it, let me know how much...
Cristopher Code sharing 1 2,700 Jan-16-2022, 06:45 PM
    Thread: Program for random sum
Post: RE: Program for random sum

I think I did it... import random def random_calculation(): number1 = random.randint(1, 100) number2 = random.randint(1, 100) result = str(number1 + number2) while True: if...
Cristopher General Coding Help 7 1,714 Jan-15-2022, 07:38 PM
    Thread: Program for random sum
Post: RE: Program for random sum

Thanks deanhystad for your detailed answer. Thanks Yoriz for your help and the link. (Jan-15-2022, 03:31 PM)deanhystad Wrote: I would remove the "asks the user if they would like to try another equ...
Cristopher General Coding Help 7 1,714 Jan-15-2022, 06:35 PM
    Thread: Program for random sum
Post: RE: Program for random sum

(Jan-15-2022, 03:21 PM)deanhystad Wrote: Your main problem is that Y is an undefined variable. You probably want to test if the input == "Y". But there are more problems here. Thank you, I forgot ...
Cristopher General Coding Help 7 1,714 Jan-15-2022, 03:38 PM
    Thread: Program for random sum
Post: Program for random sum

Hi, I started learning Python yesterday. I'm trying to create a program that generates a sum of two random integers for the user to calculate. I want the code to generate a new calculation if the use...
Cristopher General Coding Help 7 1,714 Jan-15-2022, 03:04 PM

User Panel Messages

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