INTRODUCTION TO PYTHON (PRACTICAL)

 

INTRODUCTION TO PYTHON (PRACTICAL)

What is Python?

Python is a popular programming language. It was created by Guido van Rossum, and released in 1991.

It is used for:

  • web development (server-side),
  • software development,
  • mathematics,
  • system scripting(video game).

 Python IDLE 

IDLE is a simple integrated development environment (IDE) that comes with Python. It’s a program that allows you to type in your programs and run them.

Python Keyboard shortcuts

 The following keystrokes work in IDLE and can really speed up your work. Keystroke Result

CTRL+C  -Copy selected text 

CTRL+X Cut selected text 

CTRL+V  Paste 

CTRL+Z Undo the last keystroke or group of keystrokes

CTRL+SHIFT+Z Redo the last keystroke or group of keystrokes 

F5 Run module

N:B :- Save Python file extension at .py to run python program.
For example myfirstpythonprogram.py

My First Python Program

print("Hello, World!")

print("Albesta Academy is Great!")

print("Godliness Focus and Excellence")

My Second Python Program

temp = eval (input ('Enter a temperature in Celsius: '))

print (' In Fahrenheit, that is', 9/5*temp+32)






Comments

Popular posts from this blog

MID TERM ASSIGNMENT JS1 FOR SECOND TERM 24/25 ACADEMIC SESSION

3RD TERM MID TERM PROJECT _ JS1 (COMPUTER STUDIES)

MID TERM PROJECT _ JSS2