23CSS1 PYTHON SOC EXTERNAL LAB ========== ============== ========== ====== ====== 1(a) Write a Python program to input angles of a triangle and check whether triangle is valid or not. Also validate the angles entered by the user. (sum of three angles of triangle is 180 degrees) (b) Write a program which makes use of function to display all such numbers which are divisible by 7 but are not a multiple of 5, between 1000 and 2000. c) Write a program which accepts a sequence of comma-separated numbers from console and generate a list and a tuple which contains every number. Suppose the following input is supplied to the program: 34, 67, 55, 33, 12, 98. Then, the output should be: ['34', '67', '55', '33', '12', '98'] ('34',67', '55', '33', '12', '98'). $$$$$$$$$$$$$$$$$$...
Comments
Post a Comment