Professional Documents
Culture Documents
Computer Prcticle PDF
Computer Prcticle PDF
>'Output of the program"
[2 Panenasssnes =
Fle fat Set oebug options Winsor 86
Python 3.6.5 (v3.6.5:159c0932b4, Mar 28 2018, 16:07:46) [MSC v.1900 32 bit (Int
JeL)] on win32
‘Type "copyright", "credits" or "License(|" for more information.
a
= RESTART: Ci/chapter’ 4/pallin.py
ringNITIN
a Palindrome
G9 GOGHGHGHGHGHGHGHGHGOGHGOGHGOGHGOGHGOGHGOGOGOGO'SEES
ma
a
Sa
ec a ne
QVAVAVAVAGAVA
see
BM asewere
SE anon
seGisitos
chi isspace Os
GAVAVAGOVA
a digitat,n
5
id
3
5
|
8
|
g
H
3
ma
PAGAGAGOGAGA
EI
ESSECode:
L& “prgm_4.py - C:/chapter 4/prgm_4.py (3.6.5)
File Edit Format Run Options Window Help
stri=input ("enter a string:”)
Eo
print ("original strng",str1)
str2=
x% = strl.split(
for a in x
str2 += a.capitalize()+" "
print (str2)
GOVAGVAGAVAS
oa
| re 9g
Output of the program* 555%
[B Python 3.55 shet
File Edit Shel Debug Options Window Help
Python 3.6.5 (v3.6.5:£59c0932b4, Mar 20 2018, 16:07:46) [MSC
v.1900 32 bit (Intel)] on win32
Type "copyright", "credits" or “license()" for more informati
on.
>>>
aus
ram
9GVAVAGVAGAVAGA
COC
RESTART: C:/chapter 4/prgm_4.py =
ma
enter a string:we are learning python
original strng we are learning python
We Are Learning Python
>>> |
Lné Coke
a
ISSA
@O9GOGOGOGOGOGOGE
le]EK
a
Ea
e prom 2py-Cichapeer Siprgm 2/865) =|
File Est Format fun Optione Window Help
ai |
f main()
L=[2,7,12,5, 10,15, 23)
for i in L
if is
L. remove (i)
print (b)
main()
I
¥*5 Output of the program*™ss55
ie
python 3.6.5 (v3.6.5:£59c0932b4, Mar 28 2018, 16:07:46)
0 32 bit (Intel)] on win32
RESTART: C:/chapter 5/prom_2-py
INS v.190
Type "copyright", "credits" or "license()" for more information.
QVAVAVAVAGAVA
GAVAVAGOVA
5
|
3
5
|
5
|
|
H
3
ma
PAGAGAGOGAGA
EICode:
(ib cetonustergecepy > cvenapters meeconaige, =
File Edit’ Format Run Options Window Help
L=[41, 6, 9,13, 4,23]
m=max (L)
secmax=L[0]
for i in range(1,len(L)):
if L[i]>secmax and L[i]