+ 1
Guys, I'm new and I'm working on the second practical task on Payton (I need to make a calculator), please help me, otherwise I
4 Answers
+ 5
'\n' is a new line character but 3+2=5 is number. Using string and numbers in single non-str expression is invalid in python. (3+6\n11+22) is invalid
You can use
print(3+6, \n, 11+22)
print(3+6,11+22)
print(str(3+6)+'\n'+str(11+22))
What are you trying there actually?
+ 1
Why are you printing 2 sums on separate lines with 1 print function?
Why not use 2 print functions?
print(3+6)
print(11+22)
+ 1
thank you very much for your help
+ 1
change the language tag to python
# never knew payton has a search history ^_^
# pip install payton # 🔎