+ 1
How to output this code
a=10 b=(int(a) * int(a)) print(b+"Hello") Why i cant output this code? I want output=100Hello It shows some kind of error when i can't make int+string
4 Answers
+ 12
correct code:
a = 10
b = a * a
print(str(b) + "Hello")
+ 9
a = int(input("Enter a number"))
b = a * a
print("Hello" + str(b))
+ 1
And how make a as input.. I mean this:
a=input
b=a * a
print("Hello" + str(a))
+ 1
Ok thanks :) Helped....