100% de satisfacción garantizada Inmediatamente disponible después del pago Tanto en línea como en PDF No estas atado a nada 4,6 TrustPilot
logo-home
Notas de lectura

CO2412 Computational Thinking Lecture 2 Notes

Puntuación
-
Vendido
-
Páginas
5
Subido en
20-08-2024
Escrito en
2023/2024

This document contains detailed notes from Lecture 2 of the CO2412 course on Computational Thinking. The lecture provides an introduction to the Python programming language, focusing on its simplicity, readability, and wide usage in fields such as data science and web development. The notes compare Python with C++, highlighting the differences in execution speed, typing, and learning curve.

Mostrar más Leer menos
Institución
Grado









Ups! No podemos cargar tu documento ahora. Inténtalo de nuevo o contacta con soporte.

Escuela, estudio y materia

Institución
Estudio
Desconocido
Grado

Información del documento

Subido en
20 de agosto de 2024
Número de páginas
5
Escrito en
2023/2024
Tipo
Notas de lectura
Profesor(es)
Amin amini
Contiene
Todas las clases

Temas

Vista previa del contenido

CO2412: Computational Thinking
Lecture 2

Python Programming Language
1. Introduction to Python
o Python is a high-level programming language known for its
simplicity and readability. It is interpreted, interactive, object-
oriented, and widely used in various fields, including data science
and web development.
2. Python vs. C++
o Python:

o Easy to learn and use.

o Popular in the scientific community with extensive libraries.

o Interpreted, meaning it runs line-by-line, which can slow down
execution.
o Not statically typed, which may lead to runtime errors.

o C++:

o Faster execution speed due to pre-compilation.

o Strongly typed, reducing runtime errors.

o Has a steeper learning curve and more complex syntax.

Example:

, 3. Anaconda Navigator
o Anaconda Navigator is an integrated development environment (IDE)
that simplifies Python package management and deployment. It
includes tools like Jupyter Notebook, making it easier to work with
Python.
Python Basics
1. Indentation
o Python uses indentation to define blocks of code, making it
mandatory for the structure of the code. This ensures code
readability and enforces a clean, organized format.
Example:




2. Variables and Data Types
o Variables in Python are dynamically typed, meaning they are
created upon assignment and can change types. Python supports
various data types, including strings, integers, floats, and more.




3. Data Types in Python
o Text Type: str

o Numeric Types: int, float, complex

o Sequence Types: list, tuple, range

o Mapping Type: dict

o Set Types: set, frozenset

o Boolean Type: bool

o Binary Types: bytes, bytearray, memoryview

o None Type: NoneType
$5.60
Accede al documento completo:

100% de satisfacción garantizada
Inmediatamente disponible después del pago
Tanto en línea como en PDF
No estas atado a nada


Documento también disponible en un lote

Conoce al vendedor

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
BpoBpo University of Central Lancashire Preston
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
309
Miembro desde
5 año
Número de seguidores
250
Documentos
78
Última venta
2 meses hace

3.7

73 reseñas

5
27
4
17
3
17
2
5
1
7

Recientemente visto por ti

Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes