ITSS 4381 - 08.30

studied byStudied by 0 people
0.0(0)
get a hint
hint

The University of Texas at Dallas

1 / 178

encourage image

There's no tags or description

Looks like no one added any tags here yet for you.

Studying Progress

New cards
179
Still learning
0
Almost done
0
Mastered
0
179 Terms
0
New cards

The University of Texas at Dallas

A public research university located in Dallas, Texas.

New cards
1
New cards

Data Types

A classification of data that determines the type of values that can be stored and manipulated within a program.

New cards
2
New cards

print()

A function in Python used to display output on the console or terminal.

New cards
3
New cards

Examples of constants in Python:

  1. PI: Represents the ratio of a circle's circumference to its diameter.

  2. True/False: Boolean constants for truth values.

  3. None: Special constant for absence of value.

  4. MAX_INT: Constant for maximum integer value.

  5. MIN_FLOAT: Constant for minimum floating-point number value.

Examples of constants:

  1. The speed of light in a vacuum (c)

  2. The gravitational constant (G)

  3. Avogadro's number (N_A)

  4. Planck's constant (h)

  5. The gas constant (R)

  6. The value of pi (π)

  7. Euler's number (e)

  8. The golden ratio (φ)

  9. Boltzmann's constant (k)

  10. The fine-structure constant (α)

New cards
4
New cards

global

A keyword used to declare a global variable.

New cards
5
New cards

not

A logical operator used to negate a condition.

New cards
6
New cards

with

A keyword used to define a context manager.

New cards
7
New cards

as

A keyword used for aliasing or renaming variables.

New cards
8
New cards

elif

A keyword used in conditional statements as an alternative to "else if".

New cards
9
New cards

if

A keyword used to define a conditional statement.

New cards
10
New cards

or

A logical operator used to combine conditions with an "or" relationship.

New cards
11
New cards

yield

A keyword used in generator functions to return a value.

New cards
12
New cards

assert

A keyword used for debugging purposes to check if a condition is true.

New cards
13
New cards

else

A keyword used in conditional statements as a fallback option.

New cards
14
New cards

import

A keyword used to import modules or libraries in Python.

New cards
15
New cards

pass

A keyword used as a placeholder for empty code blocks.

New cards
16
New cards

break

A keyword used to exit a loop prematurely.

New cards
17
New cards

except

A keyword used to catch and handle exceptions.

New cards
18
New cards

in

A keyword used to check if an element is present in a sequence.

New cards
19
New cards

raise

A keyword used to raise an exception manually.

New cards
20
New cards

class

A keyword used to define a class in object-oriented programming.

New cards
21
New cards

finally

A keyword used in exception handling to define a block of code that will always execute.

New cards
22
New cards

is

A keyword used to check if two objects are the same.

New cards
23
New cards

return

A keyword used to return a value from a function.

New cards
24
New cards

continue

A keyword used to skip the rest of the current iteration in a loop and move to the next one.

New cards
25
New cards

for

A keyword used to iterate over a sequence or collection.

New cards
26
New cards

lambda

A keyword used to define anonymous functions.

New cards
27
New cards

try

A keyword used to define a block of code to be tested for errors.

New cards
28
New cards

def

A keyword used to define a function.

New cards
29
New cards

from

A keyword used to import specific attributes or functions from a module.

New cards
30
New cards

nonlocal

A keyword used to declare a variable in an outer (but non-global) scope.

New cards
31
New cards

while

A keyword used to define a loop that continues as long as a condition is true.1. Variables:A name place in memory where data (value or constant) is stored. We can call the data by using its name. The data can be changed later. Variable names are not repeated.

New cards
32
New cards

x

A variable with a value of 5.

New cards
33
New cards

temperature

A variable with a value of 70.

New cards
34
New cards

pi

A variable with a value of 3.14.

New cards
35
New cards

X

A variable with a value of 7.1. Variables in Python:Containers used to store data values in a program.

New cards
36
New cards

Variable names (identifiers)

Names given to variables to identify and access them.

New cards
37
New cards

Must start with a letter (or_)

Variable names must begin with a letter or an underscore.

New cards
38
New cards

Case sensitive

Variable names in Python are case sensitive, meaning uppercase and lowercase letters are treated differently.

New cards
39
New cards

Copy and paste

A good practice for long variable names is to copy and paste them to avoid typing errors.

New cards
40
New cards

x

A variable with the value 5.

New cards
41
New cards

temperature

A variable with the value 70.

New cards
42
New cards

pi

A variable with the value 3.14.1. Variables:User-defined names used to store data in a program.

New cards
43
New cards

Variable names

Names given to variables, which are not predefined and can be chosen by the user.

New cards
44
New cards

Reserved words

Predefined words in a programming language that have a specific meaning and cannot be used as variable names.

New cards
45
New cards

Best practice

Recommended approach or method that is considered the most effective or efficient.

New cards
46
New cards

Self-explanatory

Descriptive and clear enough to understand without additional explanation.

New cards
47
New cards

Readability of code

The ease with which code can be understood and interpreted by humans.

New cards
48
New cards

Debugging

The process of identifying and fixing errors or bugs in a program.

New cards
49
New cards

Troubleshooting

The process of identifying and resolving problems or issues in a system or program.

New cards
50
New cards

hininches

A variable name assigned the value 20.

New cards
51
New cards

h_in_in

Another variable name assigned the value 20.

New cards
52
New cards

height_inches

A variable name assigned the value 20.1. Python Basics:Fundamental concepts and principles of the Python programming language.

New cards
53
New cards

Structures

The different types of data structures in Python, such as lists, tuples, and dictionaries.

New cards
54
New cards

Assignment with expression

Assigning a value to a variable using an expression, such as "y = x*7".

New cards
55
New cards

Note

A comment or remark in the code, indicated by the "#" symbol.

New cards
56
New cards

type('Hello, World!')

A function that returns the type of the given object, in this case, the string 'Hello, World!'.

New cards
57
New cards

str

The data type for strings in Python.

New cards
58
New cards

Variables

Named containers that hold values in Python, such as X, y, and pi.

New cards
59
New cards

print(pi)

A statement that prints the value of the variable pi.

New cards
60
New cards

NameError

An error that occurs when a variable is not defined or cannot be found.

New cards
61
New cards

Operator

*:The multiplication operator in Python.

New cards
62
New cards

Constant

A fixed value that does not change during the execution of a program, such as 7 and 3.14.

New cards
63
New cards

Assignment statement

A statement that assigns a value to a variable, such as "pi = 3.14".

New cards
64
New cards

Print statement

A statement that prints the value of a variable or an expression.

New cards
65
New cards

Function

A block of reusable code that performs a specific task, such as print and type.

New cards
66
New cards

#so without creating a variable, we cannot use them in a function or program.

A comment indicating that variables need to be created before they can be used in a function or program.1. Variables:Symbols or letters used to represent unknown quantities in equations.

New cards
67
New cards

Equation

A mathematical statement that shows the equality between two expressions.

New cards
68
New cards

Updated

Changed or modified to reflect new information or calculations.

New cards
69
New cards

Computation

The process of performing mathematical calculations or operations.

New cards
70
New cards

X

A variable that represents an unknown quantity in the given equation.

New cards
71
New cards

Y

Another variable that represents a different unknown quantity in the equation.

New cards
72
New cards

*

The multiplication operator used to multiply two or more values.

New cards
73
New cards

=

The equality operator used to show that two expressions are equal.

New cards
74
New cards

10

The initial value assigned to the variable X.

New cards
75
New cards

25

The initial value assigned to the variable Y.

New cards
76
New cards

0.5

A constant value used in the computation of the equation.

New cards
77
New cards

125

The final value of the variable X after the computation is performed.1. Operator Precedence:The order in which operators are evaluated in an expression.

New cards
78
New cards

Parentheses

Symbols used to group expressions and override the default operator precedence.

New cards
79
New cards

Exponent

An operator used to raise a number to a power.

New cards
80
New cards

Division

An operator used to divide one number by another.

New cards
81
New cards

Multiplication

An operator used to multiply two numbers.

New cards
82
New cards

Remainder

An operator used to find the remainder of a division operation.

New cards
83
New cards

Addition

An operator used to add two numbers.

New cards
84
New cards

Subtraction

An operator used to subtract one number from another.

New cards
85
New cards

Left to right

The direction in which operators are evaluated when they have the same precedence.1. Operator Precedence:The order in which operators are evaluated in an expression. In Python, the operator precedence follows the PEMDAS rule (Parentheses, Exponents, Multiplication and Division, Addition and Subtraction).

New cards
86
New cards

PEMDAS

An acronym that stands for Parentheses, Exponents, Multiplication and Division, Addition and Subtraction. It represents the order of operations in mathematics and is used to determine the precedence of operators in Python.

New cards
87
New cards

+ (Addition)

An arithmetic operator in Python used to add two values together.

New cards
88
New cards

* (Multiplication)

An arithmetic operator in Python used to multiply two values.

New cards
89
New cards

- (Subtraction)

An arithmetic operator in Python used to subtract one value from another.

New cards
90
New cards

/ (Division)

An arithmetic operator in Python used to divide one value by another.

New cards
91
New cards

** (Exponentiation)

An arithmetic operator in Python used to raise a value to the power of another value.

New cards
92
New cards

print()

A built-in function in Python used to display output on the console.

New cards
93
New cards

z

A variable that holds a value, which is printed using the print() function.

New cards
94
New cards

Output

The result or value that is displayed as a result of executing a program or code. In this case, the output is 25.92.1. Operator Precedence:The order in which operators are evaluated in an expression.

New cards
95
New cards

Parentheses

Symbols used to group expressions and override the default operator precedence.

New cards
96
New cards

Readability

The quality of code that makes it easy to understand and follow.

New cards
97
New cards

Debugging

The process of identifying and fixing errors or bugs in code.

New cards
98
New cards

Intended Results

The desired outcome or output of a program or operation.

New cards
99
New cards

Computed Wrongly

When an operation or calculation is performed incorrectly, resulting in incorrect output.1. Identifier Types:Different types of variables, constants, or literals used in programming.

New cards

Explore top notes

note Note
studied byStudied by 36 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 25 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 15 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 32 people
Updated ... ago
5.0 Stars(2)
note Note
studied byStudied by 53 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 41 people
Updated ... ago
5.0 Stars(2)

Explore top flashcards

flashcards Flashcard30 terms
studied byStudied by 4 people
Updated ... ago
5.0 Stars(4)
flashcards Flashcard94 terms
studied byStudied by 160 people
Updated ... ago
5.0 Stars(2)
flashcards Flashcard40 terms
studied byStudied by 132 people
Updated ... ago
4.3 Stars(7)