def myfun(): string=input("Enter string : ") string=string.replace('a','$') string=string.replace('A','$') print("Modified string : ") print(string) if __name__=="__main__": myfun()
Enter string : sateesh Modified string : s$teesh
Java Interview Questions
Python Interview Questions
Oracle Interview Questions
100 Most Asked Java Interview Questions and Answers
HR Interview Questions and Answers
Top 50 OOPS Interview Questions & Answers
Apply For Job
Java Material
Python Material
PLSQL Material
.Net Material
Java Practice Programs
400 Java Programs
Write a Java Program to Calculate electricity bill
Write a java Program to Print given number in words
Add all the digits of a given positive integer until the result has a single digit
Write a Java program to print the even numbers from 1 to 20
Write a Java program to print the sum of two numbers
Write a Python Program to Find LCM.
Write a python program to print Nsmallest numbers
Write a python program startswith and Endswith Methods
Write a Python program to get n (non-negative integer) copies of the first 2 characters of a given string. Return n copies of the whole string if the length is less than 2.
Write a python program to find absolute value of a number in the list
Java Quiz - 8
Java Quiz - 4
Java Quiz - 5
Java Quiz - 6
Java Quiz - 10