Homework Statement
I have to make a program that would end when entered a 0 and print out negative numbers and even numbers separately but what I have so far is not working.
The Attempt at a Solution
numbers = []
negative_numbers = []
while True:
number = input("Enter a number: ")...
Homework Statement
I made a two-dimensional array program, but now I need some help to alter the program in the print zone.
The Attempt at a Solution
import sys
students = []
grades = []
while True:
student = input ("Enter a name: ").replace(" ","")
if...
Homework Statement
So, I have a program, which I am finishing but I apparently ran into a problem. In the program I have to make that whenever I enter a 0 in the input, the program will stop and print the results. Here's the program before I continue saying anything else:
The Attempt at a...
Homework Statement
I need a program, which would break and show results once a 0 is entered in input name and input grade.
I figured how to do that in name, but how do I add another break? Like grade !="0"?
Homework EquationsThe Attempt at a Solution
students = []
grades = []
while True...
Homework Statement
I made a program that would some up a grade average. Everything seems fine, the only problem, when I run the program at the end it prints out like this:
Jack
5
10
6
7.0
Stacy
10
8
9
9.0
Jack
5
10
6
7.0
Stacy
10
8
9
9.0
Jack
5
10
6
7.0
Stacy
10
8
9
9.0
How can I make the...
Homework Statement
I need a program where the program needs to ask me a name of a student and then a grade.
1) The program needs to end if a 0 is entered.
2) If the name has a number in it, the program should ask the user to enter another name.
3) After the name is correctly entered the program...
Homework Statement
I need a program (in PYTHON), which would ask a user his name and grade, then print them both. 1) If the name has a number it, the program has to ask the same question again until the name is entered correctly 2) The same with the grade. If it's higher than 10, the program...
Homework Statement
I need to write a Python program, which would:
1) Ask for a name (input function)
2) Keep asking for the name if it is not entered correctly(if it has a digit in it)
3) If the name is entered correctly it will print the name
Homework Equations
How should I continue the...
I really need help with a big Python program. Our professor has been MIA for the whole term and now we need to submit a program. I thought I was doing and learning fine on my own, but the program simply does not work for me.
I need it till Thursday and I am ripping my hair out because I cannot...
My sister just came into my room asking for help, when I came to her room she told me that her computer froze and she waited for 20 minutes for it to unstuck but it didn't and she turned it off, when she turned it on her Internet was not working and neither did her Firewall. I tried turning on...