Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Input function
#4
(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
Reply


Messages In This Thread
Input function - by Fabio87 - Dec-19-2020, 11:16 AM
RE: Input function - by buran - Dec-19-2020, 11:28 AM
RE: Input function - by Fabio87 - Dec-19-2020, 05:40 PM
RE: Input function - by PyMahan - Dec-26-2020, 07:21 PM
RE: Input function - by jefsummers - Dec-19-2020, 01:33 PM
RE: Input function - by ndc85430 - Dec-19-2020, 05:50 PM
RE: Input function - by jefsummers - Dec-20-2020, 08:45 PM
RE: Input function - by perfringo - Dec-21-2020, 07:59 AM
RE: Input function - by Fabio87 - Dec-23-2020, 05:36 PM
RE: Input function - by jonny0000 - Jan-02-2021, 08:13 AM
RE: Input function - by gruntfutuk - Jan-09-2021, 11:36 AM
RE: Input function - by Alex143 - Apr-29-2022, 03:50 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to print the docstring(documentation string) of the input function ? Kishore_Bill 1 3,664 Feb-27-2020, 09:22 AM
Last Post: buran
  Writing a function that changes its answer based on user input SirRavenclaw 2 2,966 Dec-21-2019, 09:46 PM
Last Post: Clunk_Head
  New to Python - tiny coding assistance on user input function and assign to variable Mountain_Duck 1 2,618 Mar-23-2019, 06:54 PM
Last Post: Yoriz

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020