Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Arithematic average
Post: RE: Arithematic average

(Nov-17-2023, 05:10 PM)deanhystad Wrote: Your first two posts and you run bang into one of the thornier controversies in python. Numeric types and type annotations don't work well together in Pytho...
deferender Homework 7 967 Nov-17-2023, 08:39 PM
    Thread: Arithematic average
Post: RE: Arithematic average

Now im fine. doing this. def find_average(num_a: int, num_b: int) -> float: average = (num_a + num_b) // 2 return average print(find_average(18, 8))Thank you all!
deferender Homework 7 967 Nov-17-2023, 01:20 PM
    Thread: Arithematic average
Post: Arithematic average

I try it: I create a variable average whose value is the arithmetic mean of num_a and num_b. What is wrong my code? Is not work. def find_average(num_a: int, num_b: int) -> float: numbers =...
deferender Homework 7 967 Nov-17-2023, 10:58 AM
    Thread: Need help
Post: RE: Need help

Deanhystad, thank you so much! The first code is better then! I apologize for the incorrectness of the post! Next time I will try to do it correctly!
deferender Homework 3 784 Nov-14-2023, 11:57 PM
    Thread: Need help
Post: Need help

Hi, I'm a complete beginner I try two versions and sending warnings. What is the problem? 1. # 1USD= 0,8 Eur def usd_to_eur(usd: int, euro: int) -> float: return usd * euro print(usd_to_eur...
deferender Homework 3 784 Nov-14-2023, 06:40 PM

User Panel Messages

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