@m314n13/

Hyujjj

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
29
30
31
print('turbo'[::-1])
print('Hey! Im M.F.C. Or atleast # 2 in it.'[::-1])

# word_list = ['apple','coconut','banana','strawberrie']
# for index in range(0, len(word_list)):
#   word_list(index)="a " + word_list[index][0]
# print(word_list)

def pluralize_words():
  word_list = ['apple', 'berry', 'melon']
  print("Single words: " + str(word_list))
  no_sing_words = []
  no_sing_words.append(word_list[0] + 's')
  if word_list[1]== 'berry':
    word_list[1]== 'berrie' 
  no_sing_words.append('berrie' + 's')  
  no_sing_words.append(word_list[2] + 's')
  print("No longer singular words: " + str(no_sing_words))
pluralize_words()

def my_reverse(string_to_reverse):
  return string_to_reverse[::-1]
print(my_reverse('apples'))
print(my_reverse('globals'))
print(my_reverse('index'))


# if string_to_reverse == "apples":
  #   print("selppa")