Docsity

Python programs are sets of instructions, Assignments of Computer science

Partial preview of the text

Download Python programs are sets of instructions and more Assignments Computer science in PDF only on Docsity!

Introduction to Python

 (^) A readable, dynamic, pleasant,  (^) flexible, fast and powerful language

Overview

 (^) Background  (^) Syntax  (^) Types / Operators / Control Flow  (^) Functions  (^) Classes  (^) Tools

Features

 (^) Batteries Included  (^) Everything is an Object  (^) Interactive Shell  (^) Strong Introspection  (^) Cross Platform  (^) CPython, Jython, IronPython, PyPy

Who Uses Python

 (^) Google (Youtube)  (^) NASA  (^) Dropbox  (^) IBM  (^) Instagram  (^) Mozilla

Syntax

Hello World

hello_world.py

Indentation

The else here actually belongs to the 2nd if

statement

Indentation

Text

Python embraces

indentation

Types

Strings

Null

Lists

Dictionaries

Dictionary Methods