## Solution Exercise 77: python algorithm to find the first index of a given occurrence within a given string

Exercise 77 Write a Python algorithm which determines the first index of an existing occurrence within a given string s without using any predefined method as find() or rfind()... The algorithm must return -1 if the occorrence does not exist within the string s. Example if s = "Python programming language", and occ = "prog"…

## Solution Exercise 76: Python algorithm to transform a given string by swapping characters

Exercise 76 Write a python algorithm that transform a given string s by swapping the second character (s) with the befor last character. We assume that len(s) is greater or equal than 4. Example if s = "Python" , the algorithm returns the string: "Pothyn". Solution def swapping(s): n = len(s) s_swap = s +…

## Learn Python With Python 3.7.2 Tutorial - Free Offline Learning App

Python is an interpreted, item-orientated, excessive-level programming language with dynamic semantics. The Python Developer's handbook offers novices with a simple introduction to the basics, and experts will find advanced details they want.Python is an smooth to study, powerful programming language. It has green high-level facts systems and a simple but powerful technique to item-oriented programming.…

## Solution Exercise 75: Python algorithm to find the list of common characters for a given two strings

Exercise 75 Write a python algorithm which determines the list of all common characters to two strings s1 and s2 without repetition. Example if s1 = "Python language" and s2 = "Programming", the algorithm returns the liste ['P', 'o', 'n', 'a', 'g'] ( the charcter 'g' must be added only once even if shared twice)…

## Solution Exercise 74: Python algorithm which replace all character of odd index by sharp in given a string

Exercise 74 Write a Python program that replace the characters with odd index of a given string by '#'. Exemple if s = "Python" , the algorithm returns the string: "P#t#o#" Solution def replace(s): n = len(s) # initializing desired string new_string = "" # iterate over all characters of string s for i in…

## Learn Python With Python Tutorial - Pro (NO ADS)

research Python with this app without commercials.built-ine Python with 60+ Python lessons and on-line compiler.This Python educational will teach you the basic and superior built-in of Python.In every lesson, there are factors, examples with the try It your self functionality that help you successfully discover ways to code Python. - what's Python?it's miles a programmbuilt-ing…

## Solution Exercise 73: python program to delete all vowels from a given string

Exercie 73 Write a python algorithm which delete all vowels from a given string s. Example if s = "Python is hight level programming language", the algorithm returns the string: "Pthn s hght lvl prgrmmng lngg" Solution def deleteVowels(s): # define the liste of vowels vowels = ['a','e','y','u','i','o'] # initializing the string without vowels s1…