## Tuesday, October 13, 2020

Solution Exercise 44: python program that determines all word begining by a capital letter #### Exercise 44

Write a python program which groups in a list all the words which begin with a capital letter in a given string s.
Example for s = "Python is a high level programming language. Originally developed by Guido van Rossum in 1989." The program should return the list:
``["Python", "Originally", "Guido", "Rossum"]``

#### Solution

``````s = "Python is a high level programming language. Originally developed by Guido van Rossum in 1989."
L = s.split()

# initializing the list all words which begin with a capital letter
word_capital = []
for word in L:
if word.isupper():
word_capital.append(word)

# disply result
print("The list of word bgining by capital letter  is word_capital =  " , word_capital)
#The output is:
# The list of word bgining by capital letter  is word_capital =   ['Python', 'Originally', 'Guido', 'Rossum']``````

Younes Derfoufi
my-courses.net

## Python Exercises With Solutions

1. Python Arithmetic Exercises
2. Equations & System Of Equations
3. Polynomials and Functions
4. Python Arithmetic Exercises
5. Numpy, Matplolib, Sympy , Scipy - Exercises
6. Python Arithmetic Exercises

Younes Derfoufi

## Sample Text 