From 72521f0fbfa1644e2ee265aa46d6cc3336813cf7 Mon Sep 17 00:00:00 2001 From: Velaga Abijith <cb.en.u4cse16260@cb.students.amrita.edu> Date: Wed, 2 Jan 2019 23:24:02 +0530 Subject: [PATCH] q4 done --- cse16260_ex2_q4.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 cse16260_ex2_q4.py diff --git a/cse16260_ex2_q4.py b/cse16260_ex2_q4.py new file mode 100644 index 0000000..c321f55 --- /dev/null +++ b/cse16260_ex2_q4.py @@ -0,0 +1,6 @@ +str=input("enter a string : ") +c=str[0] +s1=str[1:] +s1=s1.replace(c,'$') +print(c+s1) + -- GitLab