amy8989
amy8989 amy8989
  • 07-12-2020
  • Computers and Technology
contestada

WHAT WILL BE THE OUTPUT OF THE FOLLOWING

S="PYTHO LANG"

print(S[5::-1])

print(S[5:])

print(S[-6:-1:2])

PLEASE ANSWER FAST

Respuesta :

mrsaini281 mrsaini281
  • 07-12-2020

Answer:

OHTYP

LANG

OLN

Explanation:

1) print(S[5::-1]) will go to the 5th character and -1 will reverse all the back.

Python so 5th word is n and -1 will reverse this word to nohtyp.

2) print(S[5:]) has just 5. It means it just read the word after 5th word. and we have no other argument so we will get output Lang.

Answer Link

Otras preguntas

Why os sugarcane not regarded asa stem tuber?​
Elijah needs to lease out a music studio to record his new album the studio charges and initial studio-use fee plus an hourly fee for each hours in the studio l
Alexandria became: A.) The first location for Greek tragedies and comedies. B.) Where Herodotus would write his history on Egypt. C.) Where Philosophers taught
Determine whether the ordered pair (-5,36) is a solution to the equation 2x- y/2 = -8
i need help asap!!!!!
Which type of line is shown on the map? isobar isotherm radar humidity
i need help again sorry
In Switzerland, the work of Niklaus Stoecklin, Otto Baumberger, and Herbert Leupin, which was characterized by a simple, laconic, and a sometimes hyperrealistic
can someone please help me
Elephant heart cells have 56 chromosomes. Elephant egg cells have _____. 28 chromosomes 112 chromosomes 56 chromosomes 16 chromosomes