We were given a task at school which means we have to code a program that calculates the highest possible wage for a worker at a toy company. This program requires an inputted value to be multiplied but looking at what I have I can't seem to get it to work because I can input 5 and it will do 5*5 but give me the answer 55555
Here is the code:
print ("Please enter how many teddies you have made today")
a = input()
print ("Please enter how many hours you have worked")
b = input()
A = a * 2
B = b * 5
if A>B:
print ("You are getting paid £",A,"great work today!")
else:
print ("You are getting paid£",B,"nice job!")
Any help is much appreciated - Ryan
Here is the code:
print ("Please enter how many teddies you have made today")
a = input()
print ("Please enter how many hours you have worked")
b = input()
A = a * 2
B = b * 5
if A>B:
print ("You are getting paid £",A,"great work today!")
else:
print ("You are getting paid£",B,"nice job!")
Any help is much appreciated - Ryan