This folder contains all the task solutions to MyCaptain's Python Language workshop.
The tasks are -
-
Write a Python program which accepts the radius of a circle from the user and compute the area.
-
Write a Python program to accept a filename from the user and print the extension of that.
-
Write a Python function that takes a list of words and returns the length of the longest one.
-
Write a Python program to convert month name to the number of days. List of months: January, February, March, April, May, June, July, August, September, October, November, December
Test Data:
Input the name of Month: April
Expected Output:
No. of days: 30 days
-
Write a Python program to check a triangle is equilateral, isosceles or scalene. Note: An equilateral triangle is a triangle in which all three sides are equal. A scalene triangle is a triangle that has three unequal sides. An isosceles triangle is a triangle with (at least) two equal sides.
-
Write a python function to multiply all the numbers in a list.
Test data:
[8, 2, 3, -1, 7]
Expected Output:
-336
-
Write a python program to count the number of even and odd numbers from a series of numbers.
Test Data:
(1, 2, 3, 4, 5, 6, 7, 8, 9)
Expected Output:
Number of even numbers: 5 Number of odd numbers: 4
-
Project (Optional)