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
1
Str= “Dark Chocolate@cadbury”
print(Str[8])
print(Str+“Amul”)
print(Str[3:18])
c
Dark Chocolate@cadburyAmul
k Chocolate@cad
There are error in programs
The character(“ ”) used in the program is not identifiable by Python....so use this (" ") instead.
Similar questions
English,
2 months ago
English,
5 months ago
Social Sciences,
5 months ago
Political Science,
10 months ago
Science,
10 months ago