Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Cannot figure out what is wrong
Post: RE: Cannot figure out what is wrong

(Dec-12-2017, 01:27 AM)sparkz_alot Wrote: return is a value. in order to use it you need to assign it to a variable: def ask_weight():     lbs = float(input("How many pounds do you weigh? "))     re...
Korbrent Homework 12 7,083 Dec-12-2017, 01:31 AM
    Thread: Cannot figure out what is wrong
Post: RE: Cannot figure out what is wrong

Alright, so on the subject of variables, I did some messing around to try to do what sparkz_alot said, and I took a couple lines out and came up with this little "test" to see if it would work... def...
Korbrent Homework 12 7,083 Dec-12-2017, 12:17 AM
    Thread: Cannot figure out what is wrong
Post: RE: Cannot figure out what is wrong

(Dec-11-2017, 11:41 PM)sparkz_alot Wrote: Your 'planet_call()' only needs one print statement, the pythonic way would be: print("Your weight on {} would be {} pounds".format(planet, pounds))For now,...
Korbrent Homework 12 7,083 Dec-12-2017, 12:00 AM
    Thread: Cannot figure out what is wrong
Post: RE: Cannot figure out what is wrong

(Dec-11-2017, 09:33 PM)j.crater Wrote: There are a few issues. First, which version of Python interpreter are you using? (2.7, 3.5, ...). I currently don't have Python 2 installed (which this code s...
Korbrent Homework 12 7,083 Dec-11-2017, 09:39 PM
    Thread: Cannot figure out what is wrong
Post: Cannot figure out what is wrong

Alright so here's the issue, I cannot figure out why this will not work. I have tried everything. No error pops up when I run it. I even tried placing a print statement on the first line just to see ...
Korbrent Homework 12 7,083 Dec-11-2017, 09:13 PM

User Panel Messages

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