CS101 Variables and Basic Syntax
Welcome to CS 101. This module provides an introduction to key concepts in many programming languages: variables, operators, and datatypes.
StartKey Concepts
Review core concepts you need to learn to master this subject
Comments
Arithmetic Operations
Plus-Equals Operator +=
Variables
Modulo Operator %
Integers
String Concatenation
Errors
Comments
Comments
# Comment on a single line
user = "JDoe" # Comment after code
A comment is a piece of text within a program that is not executed. It can be used to provide additional information to aid in understanding the code.
The #
character is used to start a comment and it continues until the end of the line.
Variables
Lesson 1 of 4