To take input for variable ’a’ as a decimal value
Answers
Answer:You need to enter your name in the python shell, and then press enter for the rest of the output.
Of course when you run the program your screen will look different because of the input() statement. When you ran the program you probably noticed (you did run the program, right?) how you had to type in your name and then press Enter. Then the program printed out some more text and also your name. This is an example of input. The program reaches a certain point and then waits for the user to input some data that the program can use later.
Of course, getting information from the user would be useless if we didn't have anywhere to put that information and this is where variables come in. In the previous program user_input is a variable. Variables are like a box that can store some piece of data. Here is a program to show examples of variables:
Explanation: