Skip to main content

Introduction

Welcome to the Bulldog Computer Club. This will be a guide to get you on your feet with programming.

info

Programming is not an easy skill to learn. If you want to be successful, please read this guide carefully, and review/practice often!


Here is a table of contents covering all of our units.
A new unit of this guide will be released each week.

UnitConcepts Covered
1Python Shell, Strings, and Printing
2Variables, Mathematical Calculations
3For Loops and their applications
4If Statements, Compound statements, and Comparisons
5Lists, Ranges, and Lengths
6Lists in depth
7Strings in depth
8Nested Loops
9Functions and their applications
10Logic
ATic Tac Toe Game
BCompetitive Programming Introduction
CPython Extras, GitHub, and IDEs

Unit 1

To get started, please open futurecoder in a new tab

danger

You will be going back and forth between this tab, and the new tab, so you might want to split-screen.

The tab you just opened is an interative python course, which will be a companion for this guide. That course will help you get started with learning how to write code, and in this guide, we will provide helpful tips, as well as important practice questions.

info

Goals for this unit

  1. To learn how to use this guide and futurecoder
  2. To complete up to Using Variables and print() in futurecoder
  3. To learn how to use 'strings' and add them
  4. To learn how to use print('word') to display a word


So what do I do now? Now that you have the other tab open, we would like you to read the instructions on that page carefully. Follow them, and complete the problems that are presented to you. You can return to this page when you finish the question involving printing 'hello world'.



Once you have fully understood that guide, try some of these questions.

  1. What is the result of 'he' + 'llo' + 'world'?
  2. Fill in the blank: 'hello' + ' ' + 'wor' + ______ produces hello worlds.
  3. What is the result of 'Hello ' + 'world ' + 'from ' + 't' + 'h' + 'e' + ' ' + 'Churchill Community'?
Click to reveal Solutions

1. helloworld - Each of the strings (he, llo, world) are added toghther, forming helloworld.

2. lds - Notice how if you add all of the strings and ignore the blank, you get hello wor. Now to get hello worlds, you need to add the missing lds.

3. Hello World from the Churchill Community



Now we will continue on with the unit. Once again, you will need to follow futurecoder up to the part where you learn about print(word + ' ' + your_name). Return here once you have fully understood up to that section.



Once you have fully understood that guide, try some of these questions.

  1. What is the result of
word = 'orl'
print('w' + ' ' + word + 'd')
  1. What is the result of
word = 'Hello'
print('word' + ' World')
  1. Fill in the blanks:

This should print out Hello my World

word = 'Hel'
word2 = 'orld'
print(word + ______ + ______ + word2)
Click to reveal Solutions

1. w orld - 'orl' is store inside the variable word, so all you need to do is add all of the strings ('w', ' ', 'orl', 'd') toghther.

2. word World - Notice that when we printed, we used the string 'word' instead of the variable word.

3. 'lo' and 'my W'

Congrats! You have reached the end of this unit!

The next unit will be published next week. Stay tuned!