I'm trying to make a program that would divide the amount of words in a story by the amount of chapters in order to get the amount of words per chapter. Here is the script:
chapters = float(input('Enter the number of chapters. '))
words = float(input('Enter the number of words. '))
var1 = float(input(words / chapters))
Everytime I run it, it allows me to enter the values, but after trying to calculate, I get this:
Traceback (most recent call last):
File "/Users/Hudson/Desktop/Fanfiction Word Calculator.py", line 2, in <module>
words = float(input('Enter the number of words. '))
ValueError: could not convert string to float: '253,685'
Any idea why? Is it because the number is too big? I haven't used Python in a year, so I forgot how to do this :p