Skip to content

Commit 4a629a0

Browse files
committed
initial commit
1 parent 3b33223 commit 4a629a0

File tree

3 files changed

+61
-0
lines changed

3 files changed

+61
-0
lines changed

mutations.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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+

strings.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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+

whatsYourName.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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+

0 commit comments

Comments
 (0)