Docsity

Basic study for python, Summaries of Computer science

Toggle sidebar
bg1
Notes for Python Basics
Notes for Python Basics provides an introduction to the language and its
core concepts.
Introduction
Python is a high-level, interpreted programming language.
Variables
Store data using names. Example: x = 10
Data Types
int, float, str, bool, list, tuple, dict, set
Operators
Arithmetic, comparison, logical, assignment.
Conditions
if, elif, else
Loops
for and while loops.
Functions
Defined using def.
Modules
Import code using import.
Example
print('Hello, World!')

Partial preview of the text

Download Basic study for python and more Summaries Computer science in PDF only on Docsity!

Notes for Python Basics

Notes for Python Basics provides an introduction to the language and its core concepts.

Introduction

Python is a high-level, interpreted programming language.

Variables

Store data using names. Example: x = 10

Data Types

int, float, str, bool, list, tuple, dict, set

Operators

Arithmetic, comparison, logical, assignment.

Conditions

if, elif, else

Loops

for and while loops.

Functions

Defined using def.

Modules

Import code using import.

Example

print('Hello, World!')