Mapa mental
GCSE-Coding
Conteúdo do mapa
GCSE-Coding
Function
- Def
- Defining the function
- The you type a basic imput/print
- You can then imput a if and else statement
- prints allow the user to display a message or a thing that the computer wants to input in by saying/using the print statement
- The you type a basic imput/print
- Defining the function
- Def
If and Else Statments
- If statements allow the user to input the option that they want to do.
- Else Statements allow the user for example restart the program
variables
- Variables allow you to store information that the user types in. It can only hold one item of data
Inputs and Prints
- inputs allows the user to input there answer to a question/list
Importing
- When you import things for example sys and time
- Importig sys allows you to exit the running program
- And when you import time the time slows down the program
- time.sleep(1)
- What this does is makes the program run the amount of seconds you put in slower.
- you do this by changing the number in the ()
- What this does is makes the program run the amount of seconds you put in slower.
- time.sleep(1)
- When you import things for example sys and time
Using #
- When you use the # what happens is that you can comment on your coding work that you do to add in important information.
Lists
- So you can Have/make shopping lists in code
- You can also randomly pick an item from a list.
OR: Statements
- If you use the or statements you would be able to use the if and else statements even better.
- if a == 'yes' or a =='y' or a =='YES' or a =='Y':
- This statement would allow the user to enter yes in different ways
- if a == 'yes' or a =='y' or a =='YES' or a =='Y':
- If you use the or statements you would be able to use the if and else statements even better.
:
- : represent what goes inside of for example function.
- def english():
- print('Please type the paragraph you want to look over: ')
- main body
- call the function by doing
- english()
- call the function by doing
- main body
- print('Please type the paragraph you want to look over: ')
- def english():
- : represent what goes inside of for example function.
Informações
- Descrição
- Mapa Mental sobre GCSE-Coding, criado por Diamond YT em 12-06-2018.
- Criado por
- Diamond YT
- Visualizações
- 0
- Avaliação