Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In a single file called 'hw3.py write a Python function to do each of the following. You should write one function for each question. 1.
In a single file called 'hw3.py write a Python function to do each of the following. You should write one function for each question. 1. Write a function that takes a string as input and does the following: a. Returns True if the input string has more vowels than consonants b. Returns False if the input string has more consonants than vowels C. Returns None (this is the Python equivalent of null) if the input string has an equal number of consonants and vowels. We'll ignore type safety for now! 2. The volume of a cylinder is given by the formula V = Thr^2. Given a radius R and height H as inputs return the volume of a cylinder with radius R and height H. 3. Comma-separated values (CSV) is a popular format for storing data. For the first step of the CSV portion of this assignment, write a function that takes a list of strings as inputs, and returns a single string created by joining all the input strings together, with a comma separating them
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started