programming-fundamentals-and-python
programming-fundamentals-and-python
(Tentative Handout)
A programming language is a computer language, this is an artificial language designed by computer scientists
A programming language is a set of instructions that we generally call as software, apps, applications, web-
apps, web-applications etc.
Popular structural terms that are similar to those of a natural language, are lexicon, syntax, and semantics.
However, they are very limited, pre-defined and easy to be understood
Programming languages resemble tiny languages, characterized by a limited dictionary, straightforward
syntax, and rigid semantic rules that ensure clarity and precision.
Programming languages are used for various purposes, such as:
o Web development
o Mobile app development
o Game development
o Artificial intelligence
o Data analysis
o Operating systems
Some popular programming languages include:
o Python
o Java
o JavaScript
o C++
o C#
Two major types of programming language
o General Programming Language (GPL)
Python, Java, C#, C++ etc.
o Domain Specific Language (DSL)
HTML, JavaScript, CSS, XML, JSON, SQL etc.
# Integer
my_integer = 10
print("Integer:", my_integer)
# Float
my_float = 3.14
print("Float:", my_float)
# String
my_string = "Hello, Python!"
print("String:", my_string)
# Boolean
my_boolean = True
print("Boolean:", my_boolean)
8.
#1. Integers
age = 25
print(age) # Output: 25
#4. Strings
greeting = "Hello, 78767 World!"
print(greeting) # Output: Hello, World!
#5. Boolean
is_logged_in = True #False
print(is_logged_in) # Output: True
#6. NoneType
empty_var = None
print(empty_var) # Output: None
#function
def x ():
x = 2*5
print(x)
return x