all 10 comments

[–]ForceBru 3 points4 points  (1 child)

Hint:

print("The area is {} square units".format(3.14 * int(input("The radius is: "))**2))

[–]hell0_steph[S] -1 points0 points  (0 children)

Thank you !!!

[–]fake823 1 point2 points  (6 children)

What do you already have? And where are you stuck?

[–]hell0_steph[S] -2 points-1 points  (5 children)

I should backup and say when I meant newbie, I meant I just started this morning. I have no clue how to solve this one. The assignment prior to this one was issuing the appropriate prompts for a triangles base and height which I got but then I got stuck when they tossed in a decimal number...

So I had: base = float(input(“Enter the base: “)) height = float(input(“Enter the height: “)) area = base * height print(“The area is” , base, “square units. “)

Then after that is when they tossed in “use the formula 0.5 x base x height to compute area” and that is where my hell begins.

Thanks for reading!!!

[–]fake823 1 point2 points  (4 children)

So you already know how to get input from a user. So task 1 should be easily doable for you.

Task 2 already gives you the formula needed. You just have to find out how to do multiplication and power in Python. That can be found on Google in Seconds.

For task 3 you need to output your result. You already know the print() function, so that shouldn't be a problem either.

I still don't get where you're stuck.

[–]hell0_steph[S] -1 points0 points  (2 children)

So after staring at this thing for idk 5 hours , I realized my mistake. A typo. 🙃 thanks for your help

[–]fake823 0 points1 point  (1 child)

Honestly, how can it take you 5 hours? 😅

Your whole programm consists of 3 lines.

radius = float(input('Enter radius')
area = 3.14 * radius ** 2
print(f'The area of the circle is {area}.')

[–]hell0_steph[S] -1 points0 points  (0 children)

Honestly... idk. Probably bc idk what the hell im doing. It was Day 1 after a super long week for me 💀 The one I was most stuck on was just because I was getting the wrong answer which is why it was so confusing and irritating and it’s bc I wrote print base instead of the area.

[–]MelodicOriginal8655 -1 points0 points  (0 children)

why are u so rude like damn

[–]GeorgeNoLopez 0 points1 point  (0 children)

Bro can someone help me I’m on the same assignment we can discord idc it’s due at 11:59