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:
![](https://hi-static.z-dn.net/files/d01/81c03380fe7181554c0cab691d2072a0.jpg)
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