3)Напиши результат программы: 3.1
str = “ Привет, Python!”
print (str [0:14])
print (str [0])
print (str [0:2])
print (str [0:3])
print (str [-1])
print (str [::2])
print (str [::-1])
print (str [7:])
print (str [-1] *8)
print (str + “Я учусь в 6 классе!”)

3.2
print (my_list)
print (my_list [0])
print (my_list [1:3])
print (my_list [2:])
print (second_list*2)
print (my_list +second_list)

larkina2000 larkina2000    2   01.03.2021 11:11    5

Ответы
Koshaplay57 Koshaplay57  31.03.2021 11:12

Привет, Python!Я учусь в 6 классе!

3.2

my_list = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]

second_list = [10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]

[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]

1

[2, 3]

[3, 4, 5, 6, 7, 8, 9, 10]

[10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]

[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]

ПОКАЗАТЬ ОТВЕТЫ
Другие вопросы по теме Информатика