Python Programming Basics and Terminology

Start Quiz

Study Flashcards

5 Questions

What is the symbol used for modular division?

%

What is a function?

A collection of commands given a name

What does the Str() function do?

Handles a value as a string

What is the purpose of a compiler?

To convert commands so that a computer can understand and execute them

What is a Digital Audio Workstation?

A place where your song will appear after running your code

Study Notes

  • IDEs are software programs that combine multiple tools in one window.
  • Binary code is a system of representing information using only two symbols, typically 0 and 1.
  • Input is information we are putting into the computer. Every time you click on a bottom or touch your screen or type something on the keyboard - you are entering input into the computer.
  • Output is the process of using the print() command in order to present information to the user.
  • Variable is a name for a space in the computer’s memory for something we’re storing.
  • Assignment operator is “=” allows us to assign values to variables. What is to the right of the equal sign will be assigned to what is left of the equal sign.
  • Start measure is when your song will begin to play on EarSketch.
  • Str() function tells Python to handle a value as a string, not as a number.
  • Int() function translates strings to integer numbers.
  • Function is a collection of commands given a name.
  • Concatenate adds two strings together represented by the symbol “+”.
  • Modular division gives the remainder of an integer division problem.
  • Syntax is the rules that define the written structure of a programming language.
  • Digital Audio Workstation is the place where your song will appear after running your code.
  • Computer Science is the study of the principles and use of computers.
  • Coding is using a formal language in order to create software.
  • Import pulls in modules to add functions to your code.
  • Module is a collection of code and functions that perform similar tasks.
  • Random is a module used to create random numbers in programs. Numbers are from a sequence based on that seed value.
  • random(): Random float greater than 0.0 and less than 1.0.
  • choice(): Returns a randomly selected element from the specified sequence.
  • Typecast converts the value of one data type to another data type.
  • Compiler is a program that converts commands so that a computer can understand and execute them.
  • Float is a number (positive or negative) that includes the decimal portion of the number.
  • Integer is a whole number (positive or negative)
  • String is made up of letters, numbers, and/or symbols. Not used for calculations.
  • Modulo operator is represented with the % symbol, and means that we should perform modular division.
  • Escape sequence is all of our escape sequences are marked with a backslash - the escape character. Special characters marked with the \ \n – new line \t – tab " – prints a quote ' – prints a single quote \ – prints a slash
  • Comment is notes in computer code for the programmer -- the

Test your knowledge of fundamental Python programming concepts such as input, output, variables, functions, modules, data types, and more with this quiz.

Make Your Own Quizzes and Flashcards

Convert your notes into interactive study material.

Get started for free

More Quizzes Like This

Python Programming Basics
5 questions
Python programming language basics
12 questions
Python Programming Language Basics
16 questions
Use Quizgecko on...
Browser
Browser