def get_line_length():
with open("24.txt", "r") as file:
f = file.read()
letter_seq_list = f.replace("KL", " ").split()
max_seq = max(map(len, letter_seq_list))
return max_seq
if __name__ == "__main__":
print(get_line_length())
def search(text, word):
if text in word:
print("word found")
else:
print("word not found")
for i in set(num_list3):
if num_list3.count(i) > 1:
print(i)
def starships(url):
response_starships = requests.get(url).json()
for i in response_starships['results']:
print(i['name'])
print(i['max_atmosphering_speed'])
Error 912 - This is a chat bot feature, change this status in settings
from copy import deepcopy
i = 0
a = [[3,5]]
a1 = []
while i < 5:
z = i + 4
x = i + 7
s = [z, x]
a.append(s)
temp_a = deepcopy(a)
a1.append(temp_a)
i = i + 1
print(a)
print(a1)