Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Python, exceptions
Post: RE: Python, exceptions

That makes sense @buran. The problem is, I want this program to terminate as soon as they enter in a negative number or 0. If I use the else statement, wouldn't the program ask the user to input value...
KingKhan248 General Coding Help 6 3,013 Nov-15-2020, 06:44 AM
    Thread: Python, exceptions
Post: RE: Python, exceptions

So if I change my data type it should work? I thought the if statement in the second exception would work, why doesn't it?
KingKhan248 General Coding Help 6 3,013 Nov-15-2020, 06:28 AM
    Thread: Python, exceptions
Post: Python, exceptions

I'm trying to practice using exceptions in python programming but I can't seem to figure out how it works. I'm trying to create a basic program that asks the user to enter the side lengths of a triang...
KingKhan248 General Coding Help 6 3,013 Nov-15-2020, 06:18 AM
    Thread: Please help my while loop does not work as expected
Post: RE: Please help my while loop does not work as exp...

I edited my while loop to include the x: unit = int(input("Please enter the unit: ")) mod = int(input("Please enter the mod: ")) count = 1 x = unit%mod while x != 1: count = count +1 unit = un...
KingKhan248 General Coding Help 6 2,616 Sep-28-2020, 08:07 PM
    Thread: Please help my while loop does not work as expected
Post: RE: Python

Sorry about that, I should have used bbcode. When I say it does not work, I mean nothing happens. unit = int(input("Please enter the unit: ")) mod = int(input("Please enter the mod: ")) count = 1 x = ...
KingKhan248 General Coding Help 6 2,616 Sep-28-2020, 07:29 PM
    Thread: Please help my while loop does not work as expected
Post: Please help my while loop does not work as expecte...

I was doing some math and came across a tedious problem that I thought could be solved easily by a computer, so I thought I would try writing some python code for it. I need to find the units of the i...
KingKhan248 General Coding Help 6 2,616 Sep-28-2020, 07:07 PM

User Panel Messages

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