Just looking at what you have so far, there’s a few things that kind of stick out to me:
User input in Python always gets stored as a string. Adding string elements concatenates (joins) them rather than summing them, so if you want the total or the average you need to convert from string to int or float.
score refers to the first position in your score array. Even if your list contained integers or floats, your total would just be the first element added over and over again. But here it won’t even do that because total is outside of your loop. If you don’t want to sum it up as you iterate since you used the iteration to build an array, Python has a built in sum function where you can just say total = sum(score) and it’ll add them all for you. Pretty sure they need to be ints, though.
If you want to keep going from where you’re at, then your line for total should look like this:
total = score + score + score + score + score + score
but they still need to be converted into ints and this type of thing is usually handled inside of loop.
- Be careful with division. Python 3 is pretty friendly, but when using an expression like int(total/6), what’s going to happen is that it’s going to round down to the nearest whole number. So if your average is like 6.9999999, the int will round it down to 6. If your challenge doesn’t care about about the decimal places, total/6 will work just fine. If is does care and wants a properly rounded number, you can use round((total/6, 2) for two decimal places. Change the second number as desired.