Computer Science, asked by bishnuboy10285pe4dzb, 5 months ago

Find the output for the following print statements:

Str= “Dark Chocolate@cadbury”

print(Str[8])

print(Str+“Amul”)

print(Str[3:18])​

Answers

Answered by Anonymous
1

 {\boxed{\underline{\orange{\bf\tt{Code:} } }}}

Str= “Dark Chocolate@cadbury”

print(Str[8])

print(Str+“Amul”)

print(Str[3:18])

 {\boxed{\underline{\purple{\bf\tt{Output:} } }}}

c

Dark Chocolate@cadburyAmul

k Chocolate@cad

 {\boxed{\underline{\orange{\bf\tt{Caution:} } }}}

There are error in programs

The character(“ ”) used in the program is not identifiable by Python....so use this (" ") instead.

Similar questions