python-prog1
python-prog1
Str1 = "Welcome"
Str2 = "Computer Science"
print(str1*3)
print(str1+str2)
print(str1[4])
print(str1[2:4])
Program to print the largest of the three numbers.
a = int(input("Enter a? "));
b = int(input("Enter b? "));
c = int(input("Enter c? "));
if a>b and a>c:
print("a is largest");
if b>a and b>c:
print("b is largest");
if c>a and c>b:
print("c is largest");