Introduction To Programming
Introduction To Programming
sumaiyakorabu@gmail.com
18FLX746J5
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
This file is meant for personal use by sumaiyakorabu@gmail.com only.
Sharing or publishing the contents in part or full is liable for legal action.
Agenda
• Understanding language need
• What is a Programming language?
• Components of a Programming language
• What is Grammar?
• What is Syntax?
sumaiyakorabu@gmail.com
18FLX746J5
• What is Semantic?
• Applications of Programming languages
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
This file is meant for personal use by sumaiyakorabu@gmail.com only.
Sharing or publishing the contents in part or full is liable for legal action.
Understanding language need
Without language human connection is not possible.
We use language to share our thoughts, feelings, ideas with others.
sumaiyakorabu@gmail.com
18FLX746J5
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
This file is meant for personal use by sumaiyakorabu@gmail.com only.
Sharing or publishing the contents in part or full is liable for legal action.
What is a Programming language?
A programming language is a computer language that a programmer (developer)
uses to communicate with a computer.
It is a set of instructions, defined by syntax (grammer), of a language ( C, C++, Java,
Python) to perform a specific task.
sumaiyakorabu@gmail.com
18FLX746J5
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
This file is meant for personal use by sumaiyakorabu@gmail.com only.
Sharing or publishing the contents in part or full is liable for legal action.
Components of a Programming language
● Statements
○ Set of instructions, what they say about the written code!
● Variables
○ Places to hold data in memory when a program executes
sumaiyakorabu@gmail.com
18FLX746J5
● Syntax
○ What’s grammatically legal? It should be correct for a program to run
● Semantics
○ The meaning of the statements. What do they compute? It should be
correct to make a program work as expected
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
This file is meant for personal use by sumaiyakorabu@gmail.com only.
Sharing or publishing the contents in part or full is liable for legal action.
What is Grammar?
• It is a finite set of formal rules for generating syntactically correct sentences or
meaningful correct sentences.
– Examples:
• print(“hello world”)
sumaiyakorabu@gmail.com
18FLX746J5
• for i in range(1, 100):
print(i, end= ‘ ’)
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
This file is meant for personal use by sumaiyakorabu@gmail.com only.
Sharing or publishing the contents in part or full is liable for legal action.
What is Syntax?
• In linguistics, syntax is the study of how the words and phrases are combined to
form the meaningful sentence.
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
This file is meant for personal use by sumaiyakorabu@gmail.com only.
Sharing or publishing the contents in part or full is liable for legal action.
What is Semantics?
• Semantics refers to the meaning associated with any statement in the programming
language.
• Examples:
1. Meaningful Code:
x = 10
sumaiyakorabu@gmail.com print(x, end = ‘ ’)
18FLX746J5
if __name__ == “__main__”:
sys.exit(0)
print(“Hello, World!”)
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
This file is meant for personal use by sumaiyakorabu@gmail.com only.
Sharing or publishing the contents in part or full is liable for legal action.
Applications of Programming languages
• Create a web application for various business requirements.
• Create a Machine Learning model and make prediction based on analysis of past
data.
• Automate manual tasks to reduce errors and increase throughput, thereby an
increase in profitability.
sumaiyakorabu@gmail.com
18FLX746J5
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
This file is meant for personal use by sumaiyakorabu@gmail.com only.
Sharing or publishing the contents in part or full is liable for legal action.
Summary
• We understood the importance of a programming language in computers.
• Understood the structure of a programming language.
• Learned about various applications of programming languages.
sumaiyakorabu@gmail.com
18FLX746J5
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
This file is meant for personal use by sumaiyakorabu@gmail.com only.
Sharing or publishing the contents in part or full is liable for legal action.
sumaiyakorabu@gmail.com
18FLX746J5
Thank You
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
This file is meant for personal use by sumaiyakorabu@gmail.com only.
Sharing or publishing the contents in part or full is liable for legal action.