module 3

studied byStudied by 2 people
0.0(0)
Get a hint
Hint

Mathematical Functions

1 / 90

encourage image

There's no tags or description

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

91 Terms

1

Mathematical Functions

Functions that perform specific mathematical tasks, such as finding the absolute value, rounding numbers, and calculating trigonometric functions.

New cards
2

Strings

Sequences of characters in Python.

New cards
3

Objects

General term referring to any data type or variable in Python.

New cards
4

Functions

Groups of statements that perform a specific task.

New cards
5

Math Module

A module in Python that provides mathematical functions and constants.

New cards
6

GPS Locations

Latitude and longitude coordinates that represent a specific location on Earth.

New cards
7

Program

A set of instructions written in a programming language to solve a specific problem.

New cards
8

Absolute Value

The positive value of a number, regardless of its sign.

New cards
9

Max

A function that returns the largest value among a set of numbers.

New cards
10

Min

A function that returns the smallest value among a set of numbers.

New cards
11

Pow

A function that calculates the exponentiation of a number.

New cards
12

Round

A function that rounds a number to the nearest integer or a specified number of decimal places.

New cards
13

Float

A data type in Python that represents decimal numbers.

New cards
14

Floor

A function that rounds a number down to the nearest integer.

New cards
15

Exp

A function that calculates the exponential function of a number.

New cards
16

Log

A function that calculates the natural logarithm of a number.

New cards
17

Sqrt

A function that calculates the square root of a number.

New cards
18

Sin

A function that calculates the sine of an angle in radians.

New cards
19

Asin

A function that calculates the inverse sine of a number.

New cards
20

Cos

A function that calculates the cosine of an angle in radians.

New cards
21

Acos

A function that calculates the inverse cosine of a number.

New cards
22

Tan

A function that calculates the tangent of an angle in radians.

New cards
23

Degrees

A function that converts an angle from radians to degrees.

New cards
24

Radians

A function that converts an angle from degrees to radians.

New cards
25

Import

A keyword in Python used to import modules or libraries.

New cards
26

Algebraic Functions

Functions that involve algebraic operations, such as exponentiation and logarithms.

New cards
27

Test

To check the correctness or functionality of a program or function.

New cards
28

Triangle

A polygon with three sides and three angles.

New cards
29

Vertices

The points that define the corners of a polygon, such as a triangle.

New cards
30

Coordinates

The values that represent the position of a point in a coordinate system.

New cards
31

Acos

A function that calculates the inverse cosine of a number.

New cards
32

Assigns

To assign a value to a variable.

New cards
33

Variable

A named storage location in a program that holds a value.

New cards
34

Double Quotes

Another type of quotation mark used to enclose a string literal.

New cards
35

Empty String

A string with no characters.

New cards
36

Unicode

An encoding scheme for representing international characters.

New cards
37

ASCII Code

A 7-bit encoding scheme for representing all uppercase and lowercase letters, digits, punctuation marks, and control characters.

New cards
38

Character Encoding

The process of mapping a character to its binary representation.

New cards
39

Binary Representation

A sequence of Os and 1s used to store a character in a computer.

New cards
40

Subset

A smaller portion or part of a larger set.

New cards
41

Hexadecimal Digits

Digits that range from 0 to 9 and A to F, used in hexadecimal numbering system.

New cards
42

ord Function

A function that returns the ASCII code for a character.

New cards
43

chr Function

A function that returns the character represented by an ASCII code.

New cards
44

Escape Sequences

Special sequences of characters used to represent special characters in strings.

New cards
45

Linefeed

An escape sequence (\n) used to represent a line break or new line.

New cards
46

Carriage Return

An escape sequence (\r) used to represent the return of the cursor to the beginning of the line.

New cards
47

Backslash

An escape sequence (\\) used to represent a backslash character.

New cards
48

Single Quote

An escape sequence (\') used to represent a single quote character.

New cards
49

Double Quote

An escape sequence (\") used to represent a double quote character.

New cards
50

Newline

A linefeed character (\n) used to advance the output to the next line.

New cards
51

Radius

The distance from the center of a circle to any point on its circumference.

New cards
52

math.pi

A constant in the math module representing the value of pi (approximately 3.14159).

New cards
53

str Function

A function used to convert a number into a string.

New cards
54

String Concatenation

The process of combining two or more strings into one.

New cards
55

+ Operator

An operator used to add numbers or concatenate strings.

New cards
56

input Function

A function used to read a string from the console.

New cards
57

Case Study

Minimum Number of Coins:A program that calculates the minimum number of coins needed to represent a given amount of money.

New cards
58

Objects

Entities in Python that can be numbers, strings, or other data types.

New cards
59

Methods

Functions that are associated with objects and can be called on them.

New cards
60

id

A function in Python that returns the unique identifier of an object.

New cards
61

type

A function in Python that returns the type of an object.

New cards
62

object

A data structure in Python that has a unique identifier and a type.

New cards
63

integer

A data type in Python that represents whole numbers.

New cards
64

float

A data type in Python that represents decimal numbers.

New cards
65

string

A data type in Python that represents a sequence of characters.

New cards
66

method

A function that is associated with an object and can only be invoked from that object.

New cards
67

lower()

A method in Python that converts a string to lowercase.

New cards
68

upper()

A method in Python that converts a string to uppercase.

New cards
69

strip()

A method in Python that removes whitespace characters from the beginning and end of a string.

New cards
70

format()

A function in Python that returns a formatted string.

New cards
71

format specifier

A string that specifies the format of the output in the format() function.

New cards
72

field width

The width of the output in the format() function.

New cards
73

precision

The number of decimal places in the output of the format() function.

New cards
74

scientific notation

A way of representing numbers using powers of 10.

New cards
75

percentage

A way of representing numbers as a fraction of 100.

New cards
76

justification

The alignment of the output in the format() function.

New cards
77

integer formatting

Formatting an integer in decimal, hexadecimal, octal, or binary.

New cards
78

string formatting

Formatting a string with a specified width.

New cards
79

turtle

A module in Python that provides a way to create graphics using a turtle object.

New cards
80

pen

The tool used by a turtle object to draw on the canvas.

New cards
81

pendown()

A method in the turtle module that lowers the pen, allowing the turtle to draw.

New cards
82

penup()

A method in the turtle module that raises the pen, preventing the turtle from drawing.

New cards
83

pensize()

A method in the turtle module that sets the thickness of the lines drawn by the turtle.

New cards
84

forward()

A method in the turtle module that moves the turtle forward by a specified distance.

New cards
85

backward()

A method in the turtle module that moves the turtle backward by a specified distance.

New cards
86

right()

A method in the turtle module that turns the turtle right by a specified angle.

New cards
87

left()

A method in the turtle module that turns the turtle left by a specified angle.

New cards
88

goto()

A method in the turtle module that moves the turtle to an absolute position.

New cards
89

setx()

A method in the turtle module that moves the turtle's x-coordinate to a specified position.

New cards
90

sety()

A method in the turtle module that moves the turtle's y-coordinate to a specified position.

New cards
91

setheading()

A method in the turtle module that sets the orientation of the turtle to a specified angle.

New cards

Explore top notes

note Note
studied byStudied by 11 people
... ago
5.0(1)
note Note
studied byStudied by 35 people
... ago
5.0(2)
note Note
studied byStudied by 12 people
... ago
5.0(1)
note Note
studied byStudied by 6 people
... ago
5.0(1)
note Note
studied byStudied by 151 people
... ago
5.0(1)
note Note
studied byStudied by 1 person
... ago
5.0(1)
note Note
studied byStudied by 4 people
... ago
5.0(1)
note Note
studied byStudied by 4278 people
... ago
4.5(13)

Explore top flashcards

flashcards Flashcard (31)
studied byStudied by 25 people
... ago
5.0(1)
flashcards Flashcard (119)
studied byStudied by 17 people
... ago
5.0(1)
flashcards Flashcard (26)
studied byStudied by 6 people
... ago
5.0(1)
flashcards Flashcard (25)
studied byStudied by 2 people
... ago
5.0(1)
flashcards Flashcard (26)
studied byStudied by 8 people
... ago
5.0(2)
flashcards Flashcard (131)
studied byStudied by 10 people
... ago
5.0(2)
flashcards Flashcard (61)
studied byStudied by 6 people
... ago
5.0(1)
flashcards Flashcard (41)
studied byStudied by 1 person
... ago
5.0(1)
robot