2 Antworten
+ 2
Try this:
1.input>>>print("Python" * 3)
output = PythonPythonPython
2.input>>>print("Python\n" * 3)
output = Python
Python
Python
3.input>>>print("Python\nC" * 3)
output = Python
CPython
CPython
C
4.input>>>print("Python\nC" * 3 + "Python")
output = Python
CPython
CPython
CPython
+ 1
@Błack Jesus❕ I wanted to illustrate different ways on how to input Python string operations. If it helped you please upvote and also add another trick, if you have any?