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
Apply For Job
Java Material
Python Material
PLSQL Material
.Net Material
Java Practice Programs
400 Java Programs
JDBC
JSP
Servlets
Java Quiz
C Material
C Programs
Java Interview Questions and Answers
SQL Interview Questions and Answers
Write a Java program to print the even numbers from 1 to 20
Write a Java program to check if a positive number is a palindrome or not
Write a Java program to swap the first and last elements of an array and create a new array
Write a Java program to convert a decimal number to binary numbers
Write a Java program that takes five numbers as input to calculate and print the average of the numbers
Write a Python program to calculate the sum of three given numbers. If the values are equal, return three times their sum.
Write a Python program that concatenates all elements in a list into a string and returns it.
Write a Python program to display the first and last colors from the following list.
Write a Python program to get the volume of a sphere with radius six.
Write a Python program to find out what version of Python you are using.
Java Quiz - 19
Java Quiz - 12
Java Quiz - 7
Java Quiz - 4
Java Quiz - 23