Coding and Programming-Introduction
Coding and Programming-Introduction
1. What is Coding?
Key Term: Syntax – The set of rules that defines the combinations of symbols that
are considered to be correctly structured programs in a language.
Key Term: Debugging – The process of finding and fixing errors or bugs in code.
name = "Alice"
age = 25
int (integer): 10
float: 3.14
Arithmetic: +, -, *, /
Control Structures:
def greet(name):
print("Hello, " + name)
# This is a comment
Key Term: Variable – A named container used to store data that can change during
program execution.
print("Hello, world!")
This program displays the message "Hello, world!" on the screen. It’s often the first
program beginners write to test their setup and understand basic syntax.
Key Term: Output – The result produced by a program, typically shown on the
screen.
Practice regularly: The more you code, the better you get
W3Schools
Codecademy
freeCodeCamp
Khan Academy
YouTube tutorials
Logic errors: Code runs but does not produce the intended result