0
Print("%s-%s"%(1,[2,3])
how to solve that, please help me
2 Answers
+ 6
print("%s - %s" % (1, [2, 3]))
print(f"{1} - {[2, 3]}")
print("{} - {}".format(1, [2, 3]))
print("1 - [2, 3]")
all output the same result (as a string)
1 - [2, 3]
as Diego pointed out, print must start with lower case p and the parentheses must match, i.e. ( ())
Just keep on with the Python course and this will all make sense. đ
+ 2
print("%s-%s"%(1,[2,3]))