Professional Documents
Culture Documents
Summer Training: Python
Summer Training: Python
PYTHON
RITIK KUMAR
ECE 2K17
CSJMA17001390099
WHAT I GIVE YOU?
1. What is Python?
2. Difference between programming and scripting
language.
3. Scope of Python.
4. Program.
5. Keywords in Python.
6. Data types in Python.
7. Loop statements in Python.
8. Conditional statements in Python.
9. Comparison between C++ and Python.
INFORMATION OF PYTHON
WHAT IS PYTHON?
Python is An interpreted as well as general purpose
programming language that is often applied in
scripting roles.
System Administration
- Unix
- Web logic
- Web sphere
Testing scripts
PROGRAM
choice = input("Enter choice(1/2/3/4):")
if choice == '1':
print(num1,"+",num2,"=", add(num1,num2))
Numbers can be integers (1 and 2), floats (1.1 and 1.2), fractions(1/2 and 2/3), or even complex
numbers.
nested loops You can use one or more loop inside any
another while, for or do..while loop.
CONDITIONAL STATEMENTS IN
PYTHON
STATEMENT DESCRIPTION
C++ PYTHON
Compiled Programming Language Interpreted Programming
Language
Platform dependent Platform Independent