Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Removing items in a list
Post: RE: Removing items in a list

(Nov-01-2020, 09:38 PM)GOTO10 Wrote: On line 13 you are checking the value of first.lower(). Look at your logic again and make sure that is the variable you want to check at that point. Also, cons...
cap510 Homework 3 2,360 Nov-01-2020, 09:53 PM
    Thread: Removing items in a list
Post: Removing items in a list

I have tried removing multiple items from a list, but the loop ends without the ability to continue. I am to create a list of names and then use a loop to remove more than one name. names = [] while ...
cap510 Homework 3 2,360 Nov-01-2020, 09:19 PM
    Thread: computing average in nested loops
Post: RE: computing average in nested loops

sum(weighted) = 1. The value of for num in weighted: score = float(input('Enter scores: ')) * num total += score total /= sum(weighted) total2 += total tota...
cap510 Homework 5 5,202 Sep-11-2020, 03:42 AM
    Thread: computing average in nested loops
Post: computing average in nested loops

I can't seem get class weighted average to compute correctly. I ran program with placement under the two different loops, but each time it gave me an incorrect number. students = ['Tony', 'Steve'] ca...
cap510 Homework 5 5,202 Sep-11-2020, 01:07 AM
    Thread: looping with if/elif
Post: RE: looping with if/elif

Thank you.
cap510 Homework 6 2,548 Sep-10-2020, 03:27 PM
    Thread: looping with if/elif
Post: RE: looping with if/elif

If I decrease indent, I get the following parsing error message: Error: File "/Users/c/Downloads/#3.py", line 28 ^ SyntaxError: unexpected EOF whi...
cap510 Homework 6 2,548 Sep-10-2020, 05:29 AM
    Thread: nested looping with list
Post: RE: nested looping with list

Thank you.
cap510 Homework 2 1,931 Sep-10-2020, 04:51 AM
    Thread: looping with if/elif
Post: RE: looping with if/elif

I made a new file with data but ran old program. here is the actual program where I go indent error. students = ['Tony',] category = [ 'Assignment', 'Quizzes', 'Projects', 'Essays', 'Exams'] weighted ...
cap510 Homework 6 2,548 Sep-10-2020, 04:39 AM
    Thread: looping with if/elif
Post: looping with if/elif

I'm not sure why this does not print grade value. I tried moving indent. I am trying to put grade after weighted average. students = ['Tony','Steve', 'Bruce', 'Natasha', 'Carol', 'Sam'] category = [ ...
cap510 Homework 6 2,548 Sep-10-2020, 03:58 AM
    Thread: nested looping with list
Post: nested looping with list

I'm trying to compute weighted scores using a list. I am looping through a list of students, having user input scores. With scores, I am computing weighted scores and printing the weighted score. When...
cap510 Homework 2 1,931 Sep-09-2020, 09:16 PM

User Panel Messages

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