What is the integral of the output of the following commands
s1 = 'Welcome to Python '
print(s1)
print(s1[0])
print(s1[1:4])
print(s1[:5])
print(s1*3)
a = int(input('Enter Ist No: '))
b = int(input('Enter IInd No: '))
print("%d + %d = %d" % (a,b,a+b))
n = int(input('Enter No: '))
i = 1
while(i<=10):
print("%5d X %-5d = %5d" % (i,n,i*n))
i+=1
Thx
Answers
Answered by
1
The out put will be printed by using the index given
print(s1) will give you the full string
whereas s1[0] will give you W
and so on
Similar questions