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.
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.
• 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!