Introduction
Welcome to the Bulldog Computer Club. This will be a guide to get you on your feet with programming.
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.
Unit | Concepts Covered |
---|---|
1 | Python Shell, Strings, and Printing |
2 | Variables, Mathematical Calculations |
3 | For Loops and their applications |
4 | If Statements, Compound statements, and Comparisons |
5 | Lists, Ranges, and Lengths |
6 | Lists in depth |
7 | Strings in depth |
8 | Nested Loops |
9 | Functions and their applications |
10 | Logic |
A | Tic Tac Toe Game |
B | Competitive Programming Introduction |
C | Python Extras, GitHub, and IDEs |
Unit 1
To get started, please open futurecoder in a new tab
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.
Goals for this unit
- To learn how to use this guide and futurecoder
- To complete up to
Using Variables and print()
in futurecoder - To learn how to use
'strings'
and add them - 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.
- What is the result of
'he' + 'llo' + 'world'
? - Fill in the blank:
'hello' + ' ' + 'wor' + ______
produceshello worlds
. - 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.
- What is the result of
word = 'orl'
print('w' + ' ' + word + 'd')
- What is the result of
word = 'Hello'
print('word' + ' World')
- 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!