Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Defining a function with input
Post: RE: Defining a function with input

Alright, thank you all for your answers! **smile**
abcd General Coding Help 5 3,121 Feb-20-2021, 11:11 PM
    Thread: Defining a function with input
Post: Defining a function with input

Hi, In a new file, I typed that: def CircleArea(): radius = input('Type the circle radius') return radius * 3.14Then, I ran the module and typed CircleArea in the Shell but it just gave me ...
abcd General Coding Help 5 3,121 Feb-10-2021, 10:09 PM
    Thread: I try to make Heron formula program
Post: RE: I try to make Heron formula program

(Oct-20-2020, 09:36 PM)deanhystad Wrote: No I am not talking about square roots. "a" and "c" are just the length of legs of a triangle. I expected them to be initialized similar to "b = 4". Why a...
abcd General Coding Help 7 3,428 Oct-22-2020, 12:48 AM
    Thread: I try to make Heron formula program
Post: RE: I try to make Heron formula program

(Oct-20-2020, 05:22 PM)deanhystad Wrote: Why are the sides a and c initialized the way they are? What do you mean? You would prefer math.sqrt()? At this moment, even if I remembered there was a squa...
abcd General Coding Help 7 3,428 Oct-20-2020, 09:09 PM
    Thread: I try to make Heron formula program
Post: RE: I try to make Heron formula program

Oh, I wrongly wrote s = (1/2)**p instead of s = (1/2)*p in the program. It works now for me too. Thanks for your answer!
abcd General Coding Help 7 3,428 Oct-20-2020, 05:12 PM
    Thread: I try to make Heron formula program
Post: I try to make Heron formula program

Hello, Heron's formula is to calculate the area of a triangle knowing the length of all its sides. https://en.wikipedia.org/wiki/Heron%27s_...ormulation With a, b and c the length of the sides and ...
abcd General Coding Help 7 3,428 Oct-20-2020, 01:55 PM
    Thread: I'm blocked in the construction of my program [Novice]
Post: I'm blocked in the construction of my program [Nov...

Hello, here's my program: oooooo =['fg', 'dh', 'df', 'hg', 'sd', 'hnb', 'eee', 'rh', 'ddd', 'vvvv'] aaaaaaa = [542, 861,532,7854,2213,45612,7865,1535,453,452] bbbbbb = [8888,7777,4444,1111,2222,333,...
abcd General Coding Help 1 2,638 May-22-2018, 01:27 AM

User Panel Messages

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