Anasayfa
/
Teknoloji
/
What Is the Output of the Following ; Code? My_(-)string=""python' Print(my_(-)string[1]) Error H P Y

Soru

What is the output of the following ; code? my_(-)string=""python' print(my_(-)string[1]) error h p y

Çözüm

4.3 (253 Oylar)
Savas
Uzman doğrulaması
Elit · 8 yıl öğretmeni

Cevap

The output of the given code is 'p'. The string is defined as '""python''. The print statement is trying to print the second character of the string, which is 'p'.