100% de satisfacción garantizada Inmediatamente disponible después del pago Tanto en línea como en PDF No estas atado a nada
logo-home
Understanding Primitive and Complex Data Types in Python 6,16 €   Añadir al carrito

Notas de lectura

Understanding Primitive and Complex Data Types in Python

 0 vista  0 veces vendidas

Understanding Primitive and Complex Data Types in Python

Vista previa 1 fuera de 2  páginas

  • 20 de octubre de 2024
  • 2
  • 2024/2025
  • Notas de lectura
  • Mosh
  • Todas las clases
Todos documentos para esta materia (1)
avatar-seller
majeed
Understanding Primitive and Complex Data Types in Python
Introduction
In this tutorial, we will focus on understanding the primitive and complex data types in
Python. We will also cover type conversion and manipulation.

Primitive Data Types
Python has several primitive data types including:

Numbers
Strings
Booleans
Numbers
Numbers in Python can be of different types, including:

Integers
Floating point numbers
Complex numbers
We can perform arithmetic operations using various operators such as +, -, *, /, %, and **.

Strings
Strings in Python are sequences of characters. We can perform various operations on
strings like:

Concatenation
Slicing
Indexing
Membership testing
Finding substrings
Booleans
Booleans are used to represent the truth values True and False. They are used in decision
making and while loops.

Complex Data Types
Apart from primitive data types, Python also has complex data types such as:

Lists
Tuples
Dictionaries
Sets
Lists
Lists in Python are sequences of items which can be of any type and can be accessed using
an index. We can add, remove or modify elements in a list, and use various methods to
manipulate the list.

Tuples
Tuples are similar to lists, but they are immutable, which means they cannot be modified
once they are created. We can still use various methods on tuples, but they are read-only.

Los beneficios de comprar resúmenes en Stuvia estan en línea:

Garantiza la calidad de los comentarios

Garantiza la calidad de los comentarios

Compradores de Stuvia evaluaron más de 700.000 resúmenes. Así estas seguro que compras los mejores documentos!

Compra fácil y rápido

Compra fácil y rápido

Puedes pagar rápidamente y en una vez con iDeal, tarjeta de crédito o con tu crédito de Stuvia. Sin tener que hacerte miembro.

Enfócate en lo más importante

Enfócate en lo más importante

Tus compañeros escriben los resúmenes. Por eso tienes la seguridad que tienes un resumen actual y confiable. Así llegas a la conclusión rapidamente!

Preguntas frecuentes

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

100% de satisfacción garantizada: ¿Cómo funciona?

Nuestra garantía de satisfacción le asegura que siempre encontrará un documento de estudio a tu medida. Tu rellenas un formulario y nuestro equipo de atención al cliente se encarga del resto.

Who am I buying this summary from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller majeed. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy this summary for 6,16 €. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

45,681 summaries were sold in the last 30 days

Founded in 2010, the go-to place to buy summaries for 14 years now

Empieza a vender
6,16 €
  • (0)
  Añadir