Code:
n=int(input("Enter the number:"));
s=str(n);
g="";
for i in s:
if(i=='0'):
g=g+'5';
else:
g=g+i;
t=int(g);
print(t)
Python for beginners: https://www.youtube.com/watch?v=egq7Z...
n=int(input("Enter the number:"));
s=str(n);
g="";
for i in s:
if(i=='0'):
g=g+'5';
else:
g=g+i;
t=int(g);
print(t)
Python for beginners: https://www.youtube.com/watch?v=egq7Z...
0 Comments:
Post a Comment