first task curl curl -X DELETE https marina ring com subdomain aabbcc

 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
37
38
39
40
41
42
43
44
45
46
47
# first task
"""curl = 'curl -X DELETE https://marina.ring.com/'
subdomain = ['aabbcc', 'a1b1c1']
fullUrlList = []
for i in range(len(subdomain)):
fullUrlList.append(curl + subdomain[i])
print(fullUrlList)"""
# second task
"""startString = 'abracadabra'
updatedStringUnique = ''.join(set(startString)) #create string without duplicated symbols
strList = list(updatedStringUnique) #convert to list
len1 = len(strList)
finalDict = {}
for i in range(len1):
finalDict[strList[i]] = startString.rindex(strList[i])
print(finalDict)"""
# third task
"""startList = [1, 2, 3, 4, 5, 6, 6, 6,7, 8, 22]
len1 = len(startList)
counter = 0
for i in range(len1):
if(startList[i] % 2 == 0):
counter += 1
print(counter)"""
# fourth task
"""startList = [0, 3, 3, 6, 12, 7, 4, 21]
len1 = len(startList)
newList = []
for i in range(len1):
if(i == 0):
newList.append(startList[i])
elif(startList[i] % i == 0):
newList.append(startList[i])
print(newList)"""
# fifth task
"""startString = 'quick BROWN fox JUMPS over THE lazy DOG'
strList = list(startString) #convert to list
len1 = len(strList)
newList = []
for i in range(len1):
if(i % 2 == 0):
newList.append((strList[i]).upper())
else:
newList.append((strList[i]).lower())
newString = ''.join(newList)
print(newString)"""
Collapse