Thursday, 27 January 2022

Python practice programs for beginners - Day3

 

Python practice programs for beginners - millioninformations

Welcome to the 30-day challenge of Python practising for beginners.

Day 2 Practice Program:

Day 2 Solution:

Program:


Output:



Get Input from user:

So far, we have given the value to the variable in coding itself. Now we will try to get the input from the user at run time.

use input() function to get the input.

Program: 


Output:



Practice program 3:

    Try to use this input() to the previous program and provide the input at the run time.

--> Get the input from the user

--> Print the values

--> Print the type of variables.

Try to complete the task.

The output will be displayed in the next post.


1 comment :