Introduction to Programming with Python Software

PYTHON NOTES

Intro to Programming with Python

Software


Software is a set of instructions to the hardware.


Programming


Programming means writing the instructions to create a software.


Code


The instructions that we write to create software is called Code.


Syntax


Similar to Grammar rules in English, Hindi, each programming language has a unique set of rules. These rules are called the Syntax of a Programming Language.


Why Python?

Python is an easy to learn, powerful programming language. With Python, it is possible to create programs with minimal amount of code. Look at the code in Java and Python used for printing the message "Hello World"


Java code for Hello World program:


class Main {

public static void main(String[] args) {

System.out.println("Hello World");

}

}


Python code for Hello World program:


print("Hello World")



PYTHON:

Applications of Python:


Python is a versatile language which has applications in almost every field


Artificial intelligence (AI)

Machine Learning (ML)

Big Data

Smart Devices/Internet of Things (IoT)

Cyber Security

Game Development

Backend Development, etc.


Career Opportunities:


Python developers have plenty of opportunities across the world


  1. DevOps Engineer
  2. Software Developer
  3. Data Analyst
  4. Data Scientist
  5. Machine Learning (ML) Engineer
  6. AI Scientist, etc.


Hello World Program in Python:


Here is a simple Python code that you can use to display the message "Hello World"


Code:


print("Hello World")


Output:


Hello World


Possible Mistakes:


Possible mistakes you may make while writing Python code to display the message "Hello World"


Spelling Mistake in print:


prnt("Hello World!")


•Uppercase ‘P’ in Print:


Print("Hello World!")


Missing quotes:


print(Hello World!)


Missing parentheses:


print("Hello World!"




Printing Without Quotes:


If we want to print the numerical result of 2 + 5, we do not add quotes.


Code:


print(2 + 5)


Output:


7



If we want to print the exact message "2 + 5", then we add the quotes.


Code:


print("2 + 5")


Output:


2+5

Comments

Popular posts from this blog

WEB PAGE Task 1

Introduction to Bootstrap part-1