Ask your own question, for FREE!
Mathematics 6 Online
jagr2713 (jagr2713):

Who can help help me with python error? Its math related

jagr2713 (jagr2713):

@Kainui can you help?

OpenStudy (kainui):

I have no idea what the problem is so I can't tell you until I see

jagr2713 (jagr2713):

Here is the program https://gyazo.com/b4e132c2c33e58c7e3e383bc95e97a4e But when i put the number, it gives me it combined like "5252" https://gyazo.com/27179c22b3c95e2b9d71de747b3d37e3

OpenStudy (kainui):

can you paste the program instead of taking a picture of it

zepdrix (zepdrix):

I don't know python, or any programming for that matter :[ but it looks like it's concatenating strings together do you need to specify that the inputs are integers maybe?

jagr2713 (jagr2713):

Yes https://gyazo.com/c92368b89dc62242d9dfdbb74aa15d48 but when you do that you get an error https://gyazo.com/915dff5aadc002ef06ad04906a90409b

jagr2713 (jagr2713):

@Kainui can't because the homework will have you log in it with a different PC etc so i can't turn that in haha

zepdrix (zepdrix):

i think you have to input the data like this: year1 = int(input("Please enter the number of wins in year 1: ")) try that maybe? :o

jagr2713 (jagr2713):

hmm i thin its year1 = float(input("BAH") ill try that or both

zepdrix (zepdrix):

ya google brought me this: http://stackoverflow.com/questions/20449427/how-can-i-read-inputs-as-integers-in-python input always returns a string in python 3, so i guess you have to specify ... something... ya +_+ hmm interesting

jagr2713 (jagr2713):

WOW and you dont know PROGRAMMING :D you're awesome i got it :D

jagr2713 (jagr2713):

You should go into programming :D If you can help me with that :D

zepdrix (zepdrix):

nahhh :D i like the math ive taken a couple C programming courses, too hard though D: and didn't enjoy them

jagr2713 (jagr2713):

Oh i see, sometimes programming gets boring for me as well but i just keep with it

zepdrix (zepdrix):

good good good c:

jagr2713 (jagr2713):

THnak you again

OpenStudy (zarkon):

did you see you had year=int(year5) instead of year5=int(year5)

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!