DEV Community

Discussion on: Welcome Thread - v39

Collapse
 
zjarr profile image
Pablo Navarro

Welcome to party! Glad to see you here! And never be afraid of asking what you don't know yet. We all have been there.

I'm willing to help if you want on anything :)

Collapse
 
thr37425 profile image
THR37425

Hello,
I'm having trouble with the same type of question I ask for help last week. The instructor isn't any help, and I hope you can help me figure this out. After you read the question they expect us to figure out the solution to the code. There are no examples that help to solve this question, and I have no idea where to start.

Write a single statement that assigns avg_sales with the average of num_sales1, num_sales2, and num_sales3.

Sample output with inputs: 3 4 8
Average sales: 5.00

  1. avg_sales = 0 2.
  2. num_sales1 = int(input())
  3. num_sales2 = int(input())
  4. num_sales3 = int(input()) 6.
  5. ''' Your solution goes here ''' 8.
  6. print('Average sales: {:.2f}'.format(avg_sales))

When you have a minute can you help me figure this out, please?

Thank you,

Theodore Rahm