# -*- coding: utf-8 -*-
#str1 = "Hello" saliek stringus un parveido str par int
#str2 = "there"
#bob = str1+str2
#print(bob)
#str3 = "123"
#x=int(str3) +1
#print(x)

#apple=input("Enter:") parveido str par int
#x=int(apple)-10
#print(x)

#fruit = "banana" izprinte noradito burtu vardam
#letter = fruit[1]
#print(letter)
#x=3
#w=fruit[x-1]
#print(w)

#fruit="banana" izprinte burtu skaitu varda
#print(len(fruit))

#fruit="banana" izprinte burtu skaitu varda (parveido string par int)
#x=len(fruit)
#print(x)

#fruit="banana" ar while izprinte katru burtu + ciparu
#index=0
#while index<len(fruit):
#    letter = fruit[index]
#    print(index, letter)
#    index = index+1

#fruit="banana" ar for izprinte katru burtu
#for letter in fruit:
#    print(letter)

#word = "banana"   skaita a burtus
#count=0
#for letter in word:
#    if letter =="a":
#        count = count + 1
#print (count)

#for letter in "banana":  izprinte katru burtu varda izmantojot in
#    print(letter)

#s = "Monty Python" kolonu operators - izvelas burtu ar pirmo  noradito skaitli un beidz prinet pedejo skaitli neieskaitot
#print (s[0:4])
#print(s[6:7])
#print(s[6:20])

#s = "Monty Python"
#print(s[:2]) izprinte visu lidz 2. simbolam to neieskaitot
#print(s[8:]) izprinte visu no 8. simbola to ieskaitot
#print(s[:])  printe visu

#a = "Hello" ieliek atstarpi
#b =a+" "+"there"
#print(b)

#fruit = "banana" in parbauda vai sads burts ir varda
#if "a" in fruit:
#    print("Ja")

#vards = "Cau"
#type(vards)
#print(vards.lower.__doc__) izprinte funkcijas aprakstu >>>dir(vards) izprintes visas iespejamas funkcijas

#auglis = "arbuzs" parada kurs burts tas ir (sakot no 0)
#pos = auglis.find("buz")
#print(pos)

#greet = "Hello Bob"
#nnn = greet.upper() visi lielie burti
#print(nnn)
#www = greet.lower() visi mazie burti
#print(www)

#greet = "Hello Bob"
#nstr = greet.replace("o","X") aizvieto visus o ar X
#print(nstr)

#greet = " Hello Bob "
#print(greet.lstrip()) izdzes kreiso atstarpi
#print(greet.rstrip()) izdzes labo atstarpi
#print(greet.strip())  izdzes visas atstarpes

#data = "12345"
#atpos = data.find("3") atrod kurs ir cipars tris
#print(atpos)

