Using the computer language in python to write a function code that calculates the area of a rectangle.
<h3>Writting the code in python:</h3>
<em>def rectangle_area(base, height):</em>
<em> z = base*height # the area is base*height</em>
<em> print("The area is " + str(z))</em>
<em>rectangle_area(5,6)</em>
See more about python at brainly.com/question/18502436
#SPJ1
Answer:
Explanation:
The following code is written in Python. It asks the user for an input. Then cleans the input using regex to remove all commas, whitespace, and apostrophes as well as making it all lowercase. Then it reverses the phrase and saves it to a variable called reverse. Finally, it compares the two versions of the phrase, if they are equal it prints out that it is a palindrome, otherwise it prints that it is not a palindrome. The test case output can be seen in the attached picture below.
import re
phrase = input("Enter word or phrase: ")
phrase = re.sub("[,'\s]", '', phrase).lower()
reverse = phrase[::-1]
if phrase == reverse:
print("This word/phrase is a palindrome")
else:
print("This word/phrase is NOT a palindrome")
It is true that to <span>draw a clustered cylinder chart, first select the data to be charted and then click the column button (insert tab | charts group).</span>
Answer:
Quantitative: Age, heart rate, number of pets, salary
<em>discrete</em>: number of pets
<em>continuous</em>: Age, heart rate, salary
Categorical: Gender, eye color, metal rankings
<em>Nominal:</em> Gender, eye color
<em>Ordinal:</em> metal rankings
Explanation:
Quantitative are those variables which are for quantity or number with units for measurement.
Categorical are qualitative variable which can be categorized or grouped in different groups or it may be ranking scales
.com means company, so it is ran by a company.