Previous Livestreams
You can find all of our livestreams here!
StartKey Concepts
Review core concepts you need to learn to master this subject
Return Keyword
dplyr package
Loading and Saving CSVs with R
filter with logical operators
data frame object
Excluding Columns with select() in Dplyr
rename-dplyr
Dplyr’s filter()
Return Keyword
Return Keyword
static int ReturnAValue(int x)
{
// We return the result of computing x * 10 back to the caller.
// Notice how we are returning an int, which matches the method's return type.
return x * 10;
}
static void Main()
{
// We can use the returned value any way we want, such as storing it in a variable.
int num = ReturnAValue(5);
// Prints 50 to the console.
Console.WriteLine(num);
}
In C#, the return
statement can be used to return a value from a method back to the method’s caller.
When return
is invoked, the current method terminates and control is returned to where the method was originally called. The value that is returned by the method must match the method’s return type, which is specified in the method declaration.
- 8Computers absolutely excel at performing calculations. The “compute” in their name comes from their historical association with providing answers to mathematical questions. Python performs addition…
- 9Variables that are assigned numeric values can be treated the same as the numbers themselves. Two variables can be added together, divided by 2, and multiplied by a third variable without Python di…
- 12The + operator doesn’t just add two numbers, it can also “add” two strings! The process of combining two strings is called string concatenation. Performing string concatenation creates a brand ne…
- 13Python offers a shorthand for updating variables. When you have a number saved in a variable and want to add to the current value of the variable, you can use the += (plus-equals) operator. # Firs…
- 14Python strings are very flexible, but if we try to create a string that occupies multiple lines we find ourselves face-to-face with a SyntaxError. Python offers a solution: multi-line strings. By…
What you'll create
Portfolio projects that showcase your new skills
Architect Arithmetic
Use blueprints of famous monuments to estimate their area.
Hardware with Adafruit (Python)
In this livestream we will introduce you to programming with hardware!
ACLU Child Separation Livestream (R)
In this livestream, you’ll learn about the basics of the statistical programming language R and how to load and organize data collected by the American Civil Liberties Union (ACLU).