- 1
Can anyone help me with string operations problem (pro version)
I am stuck
13 odpowiedzi
+ 3
Just save your attempt in code playground and copy and paste it's link here..
+ 3
print("ni" * 3 + '!')
+ 1
Yasir Farooq
You just have to copy your code and paste it in the code playground and share it's link here.
Moreover, it's not only available in python lesson "strings" but can also be found in "code coach" section.
+ 1
Yasir Farooq
Nope, you have made the input function a string by adding ' ' in it.
Store it in a variable and then print it.
See your most recent question and see my answer on "how to take input from the user" and then multiply it by 3.
You'll get your answer.
https://www.sololearn.com/discuss/2405270/?ref=app
+ 1
a= input()
for x in range(0,len(a)):
print(a[x]*(x+1))
0
How can I do that
0
No it is not in code playground,it is the problem in 'practice what you have learned' section,that I am supposed to solve
0
https://code.sololearn.com/cC22I4d9kdhm/?ref=app
the question:
Modify the code to output the input string repeated 3 times, and add an ! (exclamation mark) at the end of the output.
0
print('ni'*3 + '!')
0
print('ni'*3 + '!') it was the right way to write the code
0
a = ( "ni" )
print (a*3+"!")
WORKS!