String Slicing - Guess the output! | Sololearn: Learn to code for FREE!

+1

String Slicing - Guess the output!

What is the output? user= 'ramukaka' password=user[4::]+user[2::-1]+'u' print password

4/5/2018 4:12:26 PM

Shashank Bafna

4 Answers

New Answer

+5

kakamaru but you must put paranthesis around password after print.

+3

Okay, then it's correct.

+2

It works though for me, for < v2.7

0

kakamaru