Final Lab File Sample
Final Lab File Sample
Python lab
Submitted By -
Ravi Kumar
Roll no : 28240356
Section : CSE [C]
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
Program 1
Aim : Write a Python program to accept three sides of a triangle as the input and print
whether the triangle is valid or not.
Code:
# Accept three sides of the triangle as input
Result:
Program 2
Aim : Write a Python program to find the largest among three numbers.
Code:
Result:
Program 5
Aim : Write a program to count the number of alphabets and number of digits in a
string
Code:
# Input string
input_string = "Hellowelcometo123 World456!"
Result: