#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Dec 17 20:39:38 2018

@author: aleksandr
"""

#fruit = 'banana'
#print(fruit[0])

#print(len(fruit))

###############################

#i = 0
#
#while i < len(fruit):
#    letter = fruit[i]
#    
#    print(letter)
#    
#    i += 1
#
################################

#def backward(word):
#    
#    i = len(word)-1
#    print(i)
#    
#    while i >= 0:
##        print(i)
#        letter = word[i]
#        print(letter)
#        
#        i = i - 1
#        
#backward('qwerty')
    
################################

#prefixes = 'JKLMNOPQ'
#suffix = 'ack'
#
#for letter in prefixes:
#    print(letter + suffix)

##################################

#s = 'Monty Python'
#
#print(s[0:5])
#print(s[6:12])

##################################

#fruit = 'banana'
#print(fruit[3:3])
#print(fruit[:])
#print(fruit[1:])

##################################

#greeting = 'Hello World!'
#new_greeting = "J" + greeting[1:]
#
#print(new_greeting)

#################################

#def find(word, letter, n):
#    i = n
#    while i < len(word):
#        if word[i] == letter:
#            print(i)
#        i = i + 1
#            
#        print(False)
#    
#find('qwerty','w', 2)

#################################

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

################################

#word = 'banana'
#print(word.upper())

################################

#word = 'banana'
#i = word.find('b')
#print(i)
#print(word.find('na'))
#print(word.find('na', 3))
#print(word.find('n', 1, 5))

################################

 

    


