input ( ) Function in Python | Python Assignment | Digital Community




input ( ) Function in Python



 




·      WAP to accept two numbers from the user and display their sum.

 

·      Write the previous code in one line only ?

 

·      WAP to accept radius of a Circle from the user and calculate area and circumference.

 

·      Write the previous code by using math module in python.

 

·      WAP to accept roll number , grade and percentage as input from the user and display it back.

 

·      Write a program that asks the user to enter his/her name and age. Print out a message , displaying the user’s name along with the year in which they will turn 100 years old.

 

Hint: Use the module datetime to get the current year.

 

·      Write a program that asks the user to input 2 integers and adds them. Accept both the numbers in a single line only.






If you have any doubt regarding this topic then, you can ask your doubt in the comment section, I will respond to you as soon as possible.

 

 

  

 

DIGITAL COMMUNITY

We Make IT Happen.

No comments:

Post a Comment

If you have any doubts, let me know.