Posts

Showing posts with the label Install Python

Python Practice Program 1

 Python Practice Program 1 Write a Python program which will keep adding a stream of numbers inputted by the user. The adding stops  as soon as the user presses q key on keyboard. Solution: """ Write a Python program which will keep adding a stream of numbers inputted by the user. The adding stops as soon as the user presses q key on keyboard. """ sum = 0 while True : userInput = input ( "Enter the item price or press q to quit: \n " ) if (userInput!= 'q' ): sum = sum + int (userInput) print ( f"Ordered total so far { sum } " ) else : print ( f"Your total bill amount is: { sum } \n " "Thanks for shopping with us" ) break

Python Tutorial 1--- Introduction, Installation, Modules & Pip, Writing our first Program

Image
Python Introduction ***FOR BETTER VIEWING EXPERIENCE USE DESKTOP VIEW MODE*** ############################################################################## # Python Programming language was developed by Guido Van Rossum in February 1991. # It is an interpreted, high-level, general-purpose programming language. # Programming helps human to reduce manual efforts and # work which take hours to complete can be accomplished by computer in Seconds . # To write any language’s code we need a platform where # we can write the code and can execute it. # For this we use IDE’s. # IDE – IDE (Integrated Development Environment) # is a software application which provides many comprehensive facilities # to programmers for software or application development. # You can use Pycharm and Visual Studio Code as IDE ############################################################################# ####### Installation ###### ###### First of all download Python : # Go to this link - https://www.python.org/downl...