Python Basics3( for loop,lists,tuples)


print(x);
print(y);
for i in range(11) :
 print('i value is',i)
for i in range(0,5,3) :
 print(i)
s=(10,20,30)
for i in s :
 print(i)
if(x==10) :
 pass
s="abcd"
print(s[0])
s=(1,2,"hello","santosh")
print(s[0:3])
s=[50,10]
s1=[20,5]
print(s<s1)
s=[1,2,"hello","santosh"];
print(s[0]);
x={'country':'india','channel':'telugu'}
print(x['country'])
#del x['channel']
print(x['channel'])
x.clear();
print(x['country'])
del x
print(x['channel'])

Comments

Popular posts from this blog

Swayamvar Program In Python

VALDATION IN JAVASCRIPT