one of the easiest programming languages
to learn
what is
python
the keyword for getting an answer from the user
what is
input()
Name 3 relational operators
<
>
<=
!=
==
the area we write code in Python
console
Name 3 conditional statements
simple if
if else
if elif else
nested if
colors of the python logo
what is
blue and yellow
the function used to to show something on the screen
what is
print()
Arithmetic Operators (any 3)
+, - , *, / , //, %
Is this a valid variable name?
_TotalMarks
Yes
What is the result of any condition?
Either true or false
Who developed Python
Guido Van Rossum
What is a variable
A container to store the values
How to assign value to a variable?
with the help of equal sign
What is IDLE
Integrated Development and Learning Environment
x = 5
if x > 2:
if x < 10:
print("A")
else:
print("B")
else:
print("C")
A
Comments in Python starts with
#
What is the purpose of print()
Used to print on the screen
and, or, not
Python uses a compiler or interpreter
interpreter
num = 0
if num:
print("True block")
else:
print("False block")
False - else block
the file extension for python files
what is
.py
comments in python start with
what is
#
What is a modulus division operator
%
What is syntax
Rules/Format for writing python statements
x = 10
y = 5
if x > y and x < 15:
print("Condition 1 True")
elif y == 5 or x == 5:
print("Condition 2 True")
else:
print("No condition True")
Condition 1 True