Sign in

Getting Started with Python:
how python works

First steps in the world of Python

Behind the scenes of Python

Write, save and run a program

Input and Output

>>> print(“Hi there”)
Hi there

>>> fruit = input(“Enter the name of your favorite fruit: ”)
Enter the name of your favorite fruit: Apple
>>> fruit
‘Apple’
>>> print(fruit)
Apple
>>> one = int(input (“Enter a number: ”))
Enter a number: 10
>>> two = int(input (“Enter a number: ”))
Enter a number: 34
>>> print (“The sum is: ”, one + second)
The sum is: 44

Mechanical engineer and technology enthusiast

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store