0% found this document useful (0 votes)
3 views3 pages

Python Programming Codes

Uploaded by

anandadeepbala
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views3 pages

Python Programming Codes

Uploaded by

anandadeepbala
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Week 1

print('What is your name?')

a=str(input())

print('Where do you study?')

b=str(input())

print('Where do yo live?')

c=str(input())

print('how old are you?')

d=int(input())

print('so,you are,',d,'years old.')

x=int(input())

y=int(input())

c=str(x**y)

n=len(c)

print(n)

email = input()

branch = email[:2]

degree = email[3: 5]

year = email[6:8]

roll = email[9:13]

institute = email[-10:-6]

print(branch)

print(degree)

print(year)

print(roll)

print(institute)

a=str(input())

b=str(input())
c=str(input())

d=str(input())

e=str(input())

f='.'

print(a,b,c,d,e+f)

p=str(input())

l=len(p)

r1,r2,r3,r4,r5,r6='/','\\', '=','\'', '"',' '

if((l>=8) and (l<=32)):

if(r1 not in p):

if(r2 not in p):

if(r3 not in p):

if(r4 not in p):

if(r5 not in p):

if(r6 not in p):

print('True')

else:

print('False')

else:

print('False')

else:

print('False')

else:

print('False')

else:

print('False')

else:

print('False')

else:

print('False')

You might also like