+ 1
Why this code is not showing proper result
age = int(input()) name = input() if age>=18: print("Welcome"+ name) else: print('Sorry')
4 Respuestas
+ 9
# add a space
print("Welcome "+ name)
+ 4
print('welcome', name)
+ 2
Or like this with a formatted string literal:
print(f"Welcome {name}")
+ 1
print('Welcome %s'%(name))