@hvdub24/

Python Practice 2

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
word = str(input("Enter a word: "))

wordLetter = []

for letter in word:
  wordLetter.append(letter)

RemoveLettersAmmount = int(input("How many letters are you going to delete?: "))

positionsToDelete = []


for number in range(RemoveLettersAmmount):
  letterToDelete = int(input("Position to delete: "))
  positionsToDelete.append(letterToDelete)
  del ((wordLetter[(letterToDelete)-1]))





print(wordLetter)


'''
for letter in word:
  new wd = word.index()+1
'''