repl.it
@CarterMonkey/

PythonW/James

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
#array = []
#array2 = []
#for i in range(10):
  #if int(input("Enter 10 numbers: "))%2 == 0:
   # array.append(input)
  #else: 
   # array2.append(input)  
#if (sum(array)) > (sum(array2)):
  #print("The even numbers were larger")
#elif (sum(array)) < (sum(array2)):
  #print("The odd numbers were larger")
#elif (sum(array)) == (sum(array2)):
 # print("The evens and odds were equal")

monkey = input("Enter a sentence with 5 words: ")
array = monkey.split(" ")
array1 = array[0]
array2 = array[1]
array3 = array[2]
array4 = array[3]
array5 = array[4]
if array1 or array2 or array3 or array4 or array5 == "monkey":
  print("Monkey is used in the sentence")
else:
  print("Monkey is not used in the sentence")