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
Science,
2 months ago
English,
6 months ago
Social Sciences,
6 months ago
Political Science,
11 months ago
Science,
11 months ago