0% found this document useful (0 votes)
29 views

Python Basics L1

Python is a dynamically typed language where variables store data without explicitly declaring types. It supports a variety of data types including numbers, booleans, strings, lists, tuples, sets, and dictionaries. Variables in statically typed languages like C and Java have types defined at compile time, while dynamically typed languages like Python determine types during runtime based on the stored values.

Uploaded by

Annie Joe
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views

Python Basics L1

Python is a dynamically typed language where variables store data without explicitly declaring types. It supports a variety of data types including numbers, booleans, strings, lists, tuples, sets, and dictionaries. Variables in statically typed languages like C and Java have types defined at compile time, while dynamically typed languages like Python determine types during runtime based on the stored values.

Uploaded by

Annie Joe
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

PYTHON FUNDAMENTALS

VARIABLES

• Fundamental Concepts of any Programming Language


• Store Data
• No need explicitly specify the type of Data
• PEP – 8
STATICALLY VS DYNAMICALLY TYPE

• Statically typed – if the type of Variable is known at compile time, so before


running the script
• C, C++, Java are statically typed languages
• Dynamically typed – associated with run time values. Values stored in
variables have type and not the name or variable itself
PYTHON DATA TYPES

• Numbers: Integers, Floating point and Complex numbers


• Booleans: Logical values indicating False, True and None
• Strings: Ordered sequence of characters
• Lists: Ordered mutable sequence of objects
• Tuples: Ordered immutable sequence of objects
• Sets: Mutable collections of unordered unique objects
• Dictionaries: Collections of unordered key:value pairs
HAVE A GOOD DAY
THANK YOU!

You might also like