2 Respostas
+ 1
It's string interpolation:
g = "Face"
print(f"Troll{g}") #This method doesn't work in SoloLearn:(
_______________________________
h = "World"
print("Hello %s" %(h))
_______________________________
t = "Awesome"
print("SoloLearn is {}".format(t))
+ 1
with your example it goes like
number = 2
print("number is ", number)
or with format
print("number is {}".format(number))