Dec-26-2020, 07:21 PM
(Dec-19-2020, 05:40 PM)Fabio87 Wrote:here you have some problems.(Dec-19-2020, 11:28 AM)buran Wrote: What have you tried? We are glad to help, but we are not here to do your homework for you. Read Homework and No Effort Questions
Please, post your code (in code tags) and ask specific questions. Don't forget to include the full traceback (in error tags) if you get one.
One I tried is this one:
def mytriangle (base, height):
print ("The base is ", base)
print ("The height is ", height)
base (10)
height (15)
myarea = base * height / 2
This function gives me error
in print() u have to use f string or convert it. also its not necessary to define the variables base and height there!