Tutorials  Articles  Notifications  Login  Signup

Introduction Understanding Python Programming Language Python Installation on windows PC Python Installation on Mac


Python - Understanding Python Programming Language





What is Python?

Python is a widely used general purpose programming language that was created by Guido van Rossum and released in 1991.

Python is used for:

  • Writing server side of websites
  • Developing desktop apps
  • Building AI
  • Automating tasks on a computer
  • Software testing
  • and many more...

What can you do after learning Python ?

  • Python can be used to build web applications that run on servers.
  • Python can work together with other software to make tasks easier.
  • Python can connect to and manage databases. It can also read and change files.
  • Python has vast amount of good libraries for handling big amounts of data and doing complex math.
  • Python is flexible and can be used for quickly testing ideas or building full-fledged software.

Salient features of Python:

  • Python is cross platform and it works on different computer systems like Windows, Mac, Linux, and Raspberry Pi.
  • Python has a simple way of writing code that is similar to everyday English.
  • Python lets you write programs with fewer lines than other programming languages.
  • Python can run code right away, so you can see results quickly.
  • Python can be used in different ways, depending on how you want to write your code.

Python 3:

The newest major version of Python is Python 3, and you'll learn this version in this tutorial. FYI, Python 2 is still used by some people, even though it's not getting new features.

IDE:

You can use IDE of your choice to write Python. Most popular ones are VS code and PyCharm. You can also use Netbeans, or Eclipse. IDEs are helpful when working on bigger projects which has many Python files. They provide helpful auto completion suggestions, type hints and many more.

Python syntax:

  • Python doesn't use braces {} for defining blocks of code.
  • Python uses new lines to show the end of a command, instead of using special characters like semicolons or parentheses.
  • Python uses spaces and indentation to organize code, like loops, functions, and classes, instead of using curly brackets like other programming languages.

Hello world:

As the ritual of learning any new tech, you can print hello world using python with below code:

print("Hello world")

 



Who created Python?

A. Dennis Ritchie

B. Guido van Rossum

C. James Gosling

D. Bjarne Stroustrup

See answer


When was Python first released?

A. 1989

B. 1991

C. 1995

D. 2000

See answer


Which of the following is NOT a common use of Python?

A. Developing desktop apps

B. Writing server-side code

C. Building AI

D. Designing hardware circuits

See answer


What makes Python useful for handling large amounts of data and complex math?

A. Its integration with Java

B. Its vast amount of libraries

C. Its use of semicolons

D. Its lack of indentation

See answer


Which of the following is NOT a feature of Python?

A. Cross-platform compatibility

B. Requires braces {} to define code blocks

C. Uses indentation for structuring code

D. Runs code immediately without compilation

See answer


What is the latest major version of Python?

A. Python 3

B. Python 2

C. Python 4

D. Python 5

See answer


Which IDE is NOT popular for Python development?

A. VS Code

B. PyCharm

C. NetBeans

D. Visual Studio

See answer


What is the correct syntax to print "Hello world" in Python?

A. print("Hello world")

B. echo "Hello world"

C. console.log("Hello world")

D. printf("Hello world")

See answer


How does Python indicate the end of a command?

A. By using semicolons

B. By using parentheses

C. By using new lines

D. By using square brackets

See answer


What is a key benefit of using IDEs for Python development?

A. They increase the execution speed of Python programs

B. They provide features like auto-completion and type hints

C. They remove the need for indentation

D. They make Python code work only on Windows

See answer




HackerFriend Logo

Join the community of 1 Lakh+ Developers

Create a free account and get access to tutorials, jobs, hackathons, developer events and neatly written articles.


Create a free account