It is giving me error idk why I want to also add string if possible in the place of int
You can't add strings and numbers with ",", you have to use "+" or the new formatted strings (Since Python 3.6):
print(f"Here is your text. You can add variables with {variableName} or calculation like {a + b}")
Hope that helps.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.