Cursos
Iniciar sesiónComenzar a aprender IA
Cursos
Iniciar sesiónComenzar a aprender IA
+ 1

String Slicing - Guess the output!

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

pythonlearntagsolouserpasswordslicingkakaramushashankbafna
5th Apr 2018, 4:12 PM
Shashank Bafna
Shashank Bafna - avatar
2 Respuestas
+ 2
It works though for me, for < v2.7
5th Apr 2018, 4:21 PM
Shashank Bafna
Shashank Bafna - avatar
0
kakamaru
5th Apr 2018, 4:34 PM
Maninder $ingh
Maninder $ingh - avatar

¿Tienes a menudo preguntas como esta?

Aprende gratis de forma más eficaz

  • Introducción a Python

    7,1M de estudiantes

  • Introducción a Java

    4,7M de estudiantes

  • Introducción a C

    1,5M de estudiantes

  • Introducción a HTML

    7,5M de estudiantes

Ver todos los cursos
En tendencia hoy
Ошибка в приложении Sololearn
1 Votes
Is anyone else experiencing this Sololearn issue?
0 Votes
NEO V2.0
1 Votes
Sololearn course
1 Votes
solo learn program issue - iPhone?
1 Votes
Best language?
0 Votes
Is it possible to write Rust code that is as compact and expressive as Python?
0 Votes
Bug sur le deuxième cours de python
1 Votes
I am learning javascript intrmdt but when I play a code challenge. The app is givin me comlecated questions with less time.why?
0 Votes
Learn - multiple choice course questions display in one box making it impossible to continue
1 Votes