Python-da Setirlerde Axtaris

startswithendswithfindindexrfindrindexcountreplace
Задание 1

Bir setir verilib:

pythontxt = 'abcdef'

Yoxlayin ki, bu setir 'ac' ile baslayir mi?

Задание 2

Bir siyahi verilib:

pythonlst = ['12', '13', '14', '15']

Yoxlayin ki, onun elementleri '1' ile baslayir mi?

Задание 3

Bir eded verilib:

pythonnum = 123456

Yoxlayin ki, onun sonunda alti var mi?

Задание 4

Bir setir verilib:

pythontxt = 'abcdef'

'c' simvolunun indeksini tapin.

Задание 5

Bir setir verilib:

pythontxt = 'ab1cd1ef'

'1' simvolunun indeksini tapin, bu zaman axtarisi setirin ucuncu simvolundan yeddinci simvoluna qeder aparin.

Задание 6

Bir setir verilib:

pythontxt = '123453637'

'3' simvolunun son uygun gelme indeksini tapin.

Задание 7

Bir setir verilib:

pythontxt = '2025.12.31'

'2' simvolunun son uygun gelme indeksini tapin.

Задание 8

Bir eded verilib:

pythonnum = 24536589

Onda nece dene beslik oldugunu tapin.

Задание 9

Bir siyahi verilib:

pythonlst = ['abc', 'cde', 'cbb', 'aeb']

Onun her bir elementinde nece dene 'b' simvolu oldugunu tapin.

Задание 10

Bir setir verilib:

pythontxt = 'http1://'

Asagidaki neticeni elde etmek ucun kodu yazin:

pythontxt = ''
Задание 11

Bir setir verilib:

pythontxt = 'a.bc.d.ef'

Ondaki butun noqteleri bosluqlarla evez edin.