PYTHON PROGRAMMING LANGUAGE (NOTE 1)

Python is a popular programming language among not just developers, but software engineers, mathematicians, Data analysts, scientists, accountants, network engineers and even kids. It’s the ideal language to learn first. It was created by Guido van Rossum, and released in 1991. 

What makes python special? 

1) You can solve problems in less time with fewer lines of code. 

2) Python is a multi-purpose language e.g. It can be used for Data analysis, Artificial intelligence/machine learning, automation, web apps, mobile apps, desktop apps, testing, hacking etc. 

3) It is a high-level language 

4) It is cross-platform, it can be used on windows, mac, Linux. 

5) It has a large eco-system i.e., Libraries, frameworks and tools. 

USES OF PYTHON PROGRAMMING LANGUAGE 

Python programming language can be used for various kind of application such as the following, it is used for web development (server-side), Software Development, Data Analysis, System Scripting, Artificial Intelligence, Graphical illustrations, Game Development, Ethical hacking and so on.

Comments in python 

Comments can be used to explain Python code. 

Comments can be used to make the code more readable. 

Comments can be used to prevent execution when testing code. 

Creating a Comment 

A single line comment starts with a #, and Python will ignore them: 

Syntax 

#This is a comment print

("Hello, World!") 

Multi Line Comments 

Python will ignore string literals that are not assigned to a variable, you can add a multiline string (triple quotes) in your code, and place your comment inside it: 

Syntax 

""" 

This is a comment 

written in 

more than just one line 

""" 

print("Hello, World!") 

VARIABLES 

• Variables are containers for storing data values. They are words that you can allocate values into. Rules of creating a Valid Variable names 

• A variable name must start with a letter or the underscore character 

• A variable name cannot start with a number

• A variable name can only contain alpha-numeric characters and underscores (A-z, 0-9, and _) • Variable names are case-sensitive (age, Age and AGE are three different variables)



Comments

Popular posts from this blog

JSS 3 WEEK 4: INTERNET (SEARCH ENGINES)

JSS 3 - CHARTS AND GRAPHS

JSS 3 WEEK 7 - 8: HUMAN ISSUE