O GoConqr está de visual novo! Conte para nós o que você achou.

Mapa mental

firstAssignment.py

Jovain Sterling Computer Science Inglês

Conteúdo do mapa

firstAssignment.py

  1. Random

    • random.randint(_,_)
      • Returns a random value between A and B. For ranNumA - a random number between 1 and 100 will be returned.
      • The period before "randint" calls methods and attributes of the object stated. They are how you access information within an object.
    • Random is something chosen without a distinct method
  2. Functions

    • Print(_)
      • prints the text and numerals in the quotations out on one line of text.
    • Operators
      • (+)
        • addition; combines the terms in that specific order.
    • Str(_)
      • output is the string version of the object.
  3. Variables: Local and Global

    • Local
      • declared inside the function.
        • ex: largest
        • ex: count
        • ex: smallest
    • Global
      • ex: randomNumberA-E
    • None
      • no value at all or null
    • Declaring a variable for a function specifies the parameters of that function.
    • Defining a function is using the def keyword and outlining its tasks. It must include a return statement at the end.
    • Calling a function is executing with its parameters. It displays anything defined in the function.
    • The variable message was built using (+) operator, written text, functions, next line(/n).
  4. Parameters

    • RandomInput
      • Is necessary because we are comparing our random numbers to that value.
    • A value that gets passed into the function.
  5. Return Statements

    • return smallestOdd
    • the last, final step of a function. it prints a value that was used in the function.

Informações

Descrição
Computer Science Mapa Mental sobre firstAssignment.py, criado por Jovain Sterling em 03-09-2021.
Criado por
Jovain Sterling · set 2021
Atualizado
4 set 2021
Visualizações
0
Avaliação

Fale Conosco

Sobre o que é sua mensagem?

O que você acha do novo visual?

Você gostou?