0

i got an error (this is python btw)

i got this error: Traceback (most recent call last): File "file0.py", line 3, in <module> print ("Did you know " + (6- + time)) TypeError: bad operand type for unary +: 'str'

14th Oct 2022, 7:01 PM
Qusay
3 Antworten
+ 2
You need to convert the number to a string if you want to join strings.
14th Oct 2022, 7:03 PM
Lisa
Lisa - avatar
+ 1
str + number is error in python use str+ str(number)
14th Oct 2022, 7:03 PM
Jayakrishna 🇮🇳
+ 1
thx
14th Oct 2022, 7:04 PM
Qusay