GoConqr has a new look! Let us know what you think.

Notes

GCSE-Coding - created from Mind Map

Diamond YT YouTube English 1 page

Content of the notes (1)

Page 1

Function

If and Else Statments

variables

Inputs and Prints

Importing

Using #

Lists

OR: Statements

:

Def

Defining the function

The you type a basic imput/print

You can then imput a if and else statement

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 allow you to store information that the user types in. It can only hold one item of data

inputs allows the user to input there answer to a question/list

When you import things for example sys and time

Importig sys allows you to exit the running program

When you use the # what happens is that you can comment on your coding work that you do to add in important information.

So you can Have/make shopping lists in code

You can also randomly pick an item from a list.

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

: 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()

Information

Description
YouTube Note on GCSE-Coding - created from Mind Map, created by Diamond YT on 14/06/2018.
Created by
Diamond YT
Views
0
History
  • Created by Diamond YT · Jun 14, 2018
  • Copied to Note by Diamond YT · Jun 14, 2018
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?