avatarAlexander Shao-Rong Pang

Free AI web copilot to create summaries, insights and extended knowledge, download it at here

1056

Abstract

utline or a rough draft of a programme</li></ul><h2 id="6bf4">Decomposing</h2><ul><li>Decomposing is the act of breaking a problem or task down into smaller tasks</li></ul><h2 id="cf10">Commenting</h2><ul><li>Comments can be used to explain code</li><li>Comments can be used to simplify code</li><li>Comments can be used to prevent execution when testing code</li></ul><h2 id="cad4">Common Data types</h2><ul><li>Data types are a specific kind of data item, and is defined by the values it can take, the programming language used, or the operations that can be performed on it.</li><li>In coding and programming, data type is an important concept to grasp</li><li>Variables can store data of different types, and these different data types can in turn perform a variety of functions</li></ul><h2 id="e071">Arithmetic Operators</h2><ul><li>Arithmetic operators are used to perform mathematical functions</li><li>There are 7 arithmetic operators: addition, subtraction, multiplication, division, modulus, exponentiation, floor division</li></ul><h2 id="baf4"

Options

Loops</h2><ul><li>Loops are used to execute a block of statements repeatedly until a given condition is satisfied</li><li>When the given condition becomes false, the line that follows immediately after the loop is executed</li></ul><h2 id="6138">Control Flow</h2><ul><li>Control flow is the order in which a program’s code executes</li><li>Control flow of a Python program is regulated by conditional statements, loops, and function calls.</li><li>Control flow is also affected by raising and handling exceptions</li></ul><h2 id="603f">Lists</h2><ul><li>Lists are used to store multiple items in a single variable</li><li>Lists are one of 4 built-in data types in Python used to store collections of data</li></ul><h2 id="8ec2">Functions</h2><ul><li>Functions are blocks of code that only run when they are called</li><li>Data, or parameters, are passed into functions</li><li>Functions can return data as a result</li></ul><h1 id="43c0">Keep a lookout for my next article on some basic codes!</h1><p id="4f1a"><i>Alexander SR Pang</i></p></article></body>

Common Coding Concepts for Beginners

Key concepts for a beginner coder

Photo by Joshua Aragon on Unsplash

How Code Runs

Execution

  • Execution is the act of running a code
  • Execute character by character or
  • Execute line by line

Bugs

  • Bugs are mistakes or problems with our code
  • Bugs are often unexpected defects, faults or flaws in the strings of code
  • Debugging is the act of searching for and fixing bugs in our code

Pseudocode

  • Pseudocode is an informal code that does not require any strict programming language syntax
  • Pseudocode is used for creating an outline or a rough draft of a programme

Decomposing

  • Decomposing is the act of breaking a problem or task down into smaller tasks

Commenting

  • Comments can be used to explain code
  • Comments can be used to simplify code
  • Comments can be used to prevent execution when testing code

Common Data types

  • Data types are a specific kind of data item, and is defined by the values it can take, the programming language used, or the operations that can be performed on it.
  • In coding and programming, data type is an important concept to grasp
  • Variables can store data of different types, and these different data types can in turn perform a variety of functions

Arithmetic Operators

  • Arithmetic operators are used to perform mathematical functions
  • There are 7 arithmetic operators: addition, subtraction, multiplication, division, modulus, exponentiation, floor division

Loops

  • Loops are used to execute a block of statements repeatedly until a given condition is satisfied
  • When the given condition becomes false, the line that follows immediately after the loop is executed

Control Flow

  • Control flow is the order in which a program’s code executes
  • Control flow of a Python program is regulated by conditional statements, loops, and function calls.
  • Control flow is also affected by raising and handling exceptions

Lists

  • Lists are used to store multiple items in a single variable
  • Lists are one of 4 built-in data types in Python used to store collections of data

Functions

  • Functions are blocks of code that only run when they are called
  • Data, or parameters, are passed into functions
  • Functions can return data as a result

Keep a lookout for my next article on some basic codes!

Alexander SR Pang

Coding
Programming
Python
Code
Alexander Pang
Recommended from ReadMedium