File tree Expand file tree Collapse file tree 3 files changed +61
-0
lines changed Expand file tree Collapse file tree 3 files changed +61
-0
lines changed Original file line number Diff line number Diff line change
1
+ def mutate_string (string , position , character ):
2
+ print (string )
3
+ new_string = string [:position ] + character + string [position + 1 :]
4
+ return new_string
5
+
6
+
7
+
8
+
9
+ if __name__ == '__main__' :
10
+ s = input ()
11
+ i , c = input ().split ()
12
+ print (int (i ))
13
+ print (c )
14
+ s_new = mutate_string (s , int (i ), c )
15
+ print (s_new )
16
+
17
+
Original file line number Diff line number Diff line change
1
+ '''
2
+ Author: Aditya Mangal
3
+ Date: 26 september,2020
4
+ Purpose: python practise problem
5
+
6
+ '''
7
+ def split_and_join (line ):
8
+
9
+
10
+
11
+ a = ('-' .join (line ))
12
+ return a
13
+
14
+
15
+ if __name__ == '__main__' :
16
+ line = input ().split ()
17
+ result = split_and_join (line )
18
+ print (result )
19
+
20
+
21
+
22
+
Original file line number Diff line number Diff line change
1
+ '''
2
+ Author: Aditya Mangal
3
+ Date: 25 september,2020
4
+ Purpose: python practise problem
5
+
6
+ '''
7
+
8
+ user_firstname = input ()
9
+ user_lastname = input ()
10
+
11
+ str = "You just delved into python"
12
+
13
+ print ('Hello' ,user_firstname ,end = " " )
14
+ print (user_lastname ,end = "" )
15
+ print ('!' ,end = " " )
16
+ print (str ,end = "" )
17
+ print ('.' )
18
+
19
+
20
+
21
+
22
+
You can’t perform that action at this time.
0 commit comments