Day: February 6, 2021

Python Exercise: Print the calendar of a given month and year

  (Python Example for Citizen Data Scientist & Business Analyst)   Write a Python program to print the calendar of a given month and year. Note: Use ‘calendar’ module. Python calendar.month(theyear, themonth, w=0, l=0): The function returns a month’s calendar in a multi-line string using the formatmonth() of the TextCalendar class. ‘l’ specifies the number …

Python Exercise: Display the first and last colors from a given list

  (Python Example for Citizen Data Scientist & Business Analyst)   Write a Python program to display the first and last colors from the following list. color_list = [“Red”,”Green”,”White” ,”Black”] Sample Solution:- Python Code: color_list = [“Red”,”Green”,”White” ,”Black”] print( “%s %s”%(color_list[0],color_list[-1])) Sample Output: Red Black   Display the first and last colors from a given …

Python Exercise: Generate a list and tuple with comma-separated numbers

  (Python Example for Citizen Data Scientist & Business Analyst)   Write a Python program which accepts a sequence of comma-separated numbers from user and generate a list and a tuple with those numbers. Sample data: 3, 5, 7, 23 Python list: A list is a container which holds comma separated values (items or elements) between square brackets …

Python Exercise: Write a Python program which accepts the radius of a circle from the user and compute the area

  (Python Example for Citizen Data Scientist & Business Analyst)   Exercise: Write a Python program which accepts the radius of a circle from the user and compute the area. Python: Area of a Circle In geometry, the area enclosed by a circle of radius r is πr2. Here the Greek letter π represents a …

Year 1 – Math Worksheet 011 – Modeling Real Life Objects Using Shapes Worksheets

  Year 1 – Math Worksheet 011 – Modelling Real Life Objects Using Shapes Worksheets     Applied Machine Learning & Data Science with Python, R and SQL. A list of Python, R and MATLAB Codes for Applied Machine Learning and Data Science https://setscholars.net/   Subscribe to our YouTube channel and press the ring to get …

Year 1 – Math Worksheet 010 – Comparing Objects using their Measurements Worksheets

  Year 1 – Math Worksheet 010 – Comparing Objects using their Measurements Worksheets     Year 1 – Math Worksheet 009 – Representing Objects with Numbers from 0-20   Free Machine Learning & Data Science Coding Tutorials in Python & R for Beginners. Subscribe @ Western Australian Center for Applied Machine Learning & Data …