Delete the spam answers !!!
Explain the python program step by step please..
def makenew(mystr):
newstr = " "
count = 0
for i in mystr:
if count%2 !=0:
newstr = newstr+str(count)
else:
if i.islower():
newstr = newstr+i.upper()
else:
newstr = newstr+i
count +=1
newstr = newstr+mystr[:1]
print("The new string is :", newstr)
makenew("ALL tHe BeSt")
output is attached in the attachment. please explain me the working of this program.
Attachments:
Answers
Answered by
1
Answer:
Below
Explanation:
Python is an interpreted, object-oriented, high-level programming language with dynamic semantics. Its high-level built in data structures, combined with dynamic typing and dynamic binding, make it very attractive for Rapid Application Development, as well as for use as a scripting or glue language to connect existing components together.
Similar questions
English,
1 month ago
Math,
2 months ago
Math,
2 months ago
Physics,
10 months ago
Social Sciences,
10 months ago