DEV Community

Mohit Raj
Mohit Raj

Posted on

3.6 Exercise for you

Now its time to first exercise.

Q1. Ask user to input 5 numbers and you have to print the average of these five number. take all the input in one line.

Q2. You have few email id's :'abc@gmail.com' , ram@yahoo.com' , 'dev@gmail.com' , '123@gmail.com'
you have to print a list for each email id which contain two value one is values befor @ and one which is after @.

Q3. Take two number as an input (in one line) and print their sum,difference and multiplication value as an output.

Note : You can post your answer in the comment box. answer of these question covered in the next post.

Thank you

Top comments (6)

Collapse
 
dmitrypolo profile image
dmitrypolo •

How is this related to #web-dev exactly?

Collapse
 
mohit355 profile image
Mohit Raj •

If not related then DEV team will remove it.

Collapse
 
dmitrypolo profile image
dmitrypolo •

Not sure if that's the right attitude.

Thread Thread
 
mohit355 profile image
Mohit Raj •

I am sorry but please don't take it in wrong way. my intention is not what you take. i just want to know why it is not related because i am unable to decide this. can u please explain?

Thread Thread
 
dmitrypolo profile image
dmitrypolo •

The reason I say that is because this post was basic Python stuff. It has no relation to web-dev, that is my point.

Thread Thread
 
mohit355 profile image
Mohit Raj •

Okk, Thank you I will take care of that