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

INF

Puntuación
-
Vendido
-
Páginas
23
Grado
A+
Subido en
24-01-2021
Escrito en
2021/2022

INF1511 EXAM PREP NOTES AND 2017 EXAM PAPER WITH ANSWERS

Institución
Grado










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

Escuela, estudio y materia

Institución
Grado

Información del documento

Subido en
24 de enero de 2021
Número de páginas
23
Escrito en
2021/2022
Tipo
Examen
Contiene
Preguntas y respuestas

Temas

Vista previa del contenido

INF1511
EXAM PREP NOTES

,Chapter 1 Python and Its Features
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!"

a = True # Boolean variable
b = [2, 9, 4] # List variable
c = ('apple', 'mango', 'banana') # tuple variable
A tuple in python language refers to an ordered, immutable (non-
changeable) set of values of any data type.

Keywords
$3.04
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

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.
StudyBuddyUnisa University of South Africa (Unisa)
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
304
Miembro desde
5 año
Número de seguidores
177
Documentos
64
Última venta
5 meses hace
Study Buddy

4.8

114 reseñas

5
101
4
8
3
4
2
0
1
1

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