-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest4.py
More file actions
36 lines (30 loc) · 1.07 KB
/
test4.py
File metadata and controls
36 lines (30 loc) · 1.07 KB
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
32
33
34
35
36
def remove_vowels(document: str) -> str:
# write your code her
document = document.lower()
if not document:
return ""
else:
if document[0] == "a" or document[0] == "e" or document[0] == "i" or document[0] == "o" or document[0] == "u" or document[0] == "y":
decrypt = ""
else:
decrypt = ""
for char in range(1, len(document) + 1):
if document[char - 1] == "a" or document[char - 1] == "e" or document[char - 1] == "i" or document[char - 1] == "o" or document[char - 1] == "u" or document[char - 1] == "y":
pass
else:
decrypt = decrypt + document[char - 1]
return decrypt
print(remove_vowels("I like my boss"))
def is_jumping(number: int) -> str:
# write your code here
num = []
t = f"{number}"
if len(num) == 1:
return "JUMPING"
for i in range(len(t)-1):
minus = number[i] - 1
plus = number[i] + 1
if minus == num[i + 1] or plus == num[i + 1]:
return "dsadas"
pass
print(is_jumping(12))