• ¿Documento equivocado? Cámbialo gratis
  • Escrito por estudiantes que aprobaron
  • Inmediatamente disponible después del pago
  • Leer en línea o como PDF
Vender
¿Dónde estudias?
Tu idioma
Document preview thumbnail
Vista previa 3 fuera de 24 páginas
Resumen

Summary INF1511 Summarised Study Notes

Document preview thumbnail
Vista previa 3 fuera de 24 páginas

Latest summarized notes for exam preparation. for assistance. All the best on your exams!!

Vista previa del contenido

INF1511

NOTES

,INF 1511 – Revision notes – Chapter 1
1. Introduction
Python is a powerful high-level, dynamic object-oriented programming that is implemented
in C, and relies on the extensive portable C libraries.

Python is an interpreted programming language, which means that it can be executed by the
computer without compiling. Compiling is the conversion of a programing language into
machine instructions that can then be executed by the computer.

C is a general-purpose, computer programming language, supporting structured
programming.

The implementation of Python studied in the course is called CPython, or Classic Python
(often just called Python) other implementations are Jthon and IronPython.

2. Using Python
Python can be used on through the command line

The command line is used to execute one line of Python code at a time. Note that the
commands executed this way cannot be saved.




To ensure that Python can be executed from any folder on a computer, the Path variable in
the Environmental Variables must be updated with the path of the Python installation.

Or the IDLE IDE

, The IDLE enables the programmer to save Python code in a file and execute all the code at
once. One can edit, debug and preview code in the IDLE.




3. Basic Elements in a Program
Programs consist of the following basic elements, a collection of literals, variables, and
keywords.

Literals

A literal is a number or string that appears directly in a program, e.g.

10 # Integer literal
10.50 # Floating-point literal
'Hello' # String literal
"World!" # String literal
'''Hello World!
It might rain today # Triple-quoted string literal
Tomorrow is Sunday'''

In Python, you can use both single and double quotes to represent strings. The strings that run
over multiple lines are represented by triple quotes.

Variables
Variables are used for storing data in a program. E.g.
l = 10
Length = 10
k= "Hello World!"

Información del documento

Subido en
4 de enero de 2022
Número de páginas
24
Escrito en
2022/2023
Tipo
Resumen
$4.38

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

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.
EduPal
4.2
(14577)
Vendido
155578
Seguidores
36033
Artículos
5321
Última venta
3 días hace



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