Skip to content

Forum in maintenance, we will back soon 🙂

Need help on module...
 
Notifications
Clear all

Need help on modules for prompt engineering course

3 Posts
2 Users
2 Reactions
20 Views
(@souravdutta)
Posts: 2
New Member
Topic starter
 
I am stuck on one problem in the Module section. Can you solve this issue? I have attached the screenshots of the problem below.


 
 
Posted : 08/31/2023 12:56 pm
Hasan Aboul Hasan
(@admin)
Posts: 1276
Member Admin
 

Hi Friend.

There is a problem with the syntax.

try this

avg = my_module.calculate_avarage(numbers)
print(f"the average is {avg}")

 

if you wanna call the function, you need to use the module name first and then call it.

 

 
Posted : 08/31/2023 3:07 pm
Sourav Dutta reacted
(@souravdutta)
Posts: 2
New Member
Topic starter
 

@admin Thank you for your response. It works very well. Now I have understood the mistake that I had made.

 
Posted : 08/31/2023 3:24 pm
Share:
[the_ad_group id="312"]