-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathChallenge1.py
More file actions
21 lines (12 loc) · 864 Bytes
/
Challenge1.py
File metadata and controls
21 lines (12 loc) · 864 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#
# Decription: This program will analize the upper and lower case content of
# a given string.
#
sampleString = "We the People of the United States, in Order+ to form a more perfect Union, establish Justice, insure domestic Tranquility, provide for the common defence, promote the general Welfare, and secure the Blessings of Liberty to ourselves and our Posterity, do ordain and establish this Constitution for the United States of America."
"""
## 1) Start by counting the number of upper, lower, and other characters inthe provided string. Print your results.
"""
# 2) Next, invert the case of all of the text in the sample string. Print the resulting string.
# 3) Place all vowels in one list.
# 4) Place all consonant in another list.
# 5) Find the decimal value of each character and place all characters that are multiples of 3 in another list.