Computer Science 2024

HCC Website | Computer Science 2024

Assignment: Tic Tac Toe (part 1)

Due 10/9 at 11:59

Previously your projects have been simple enough to complete in one week, but now it’s time to turn up the heat 🔥

During the next two weeks, you will program a game of Tic, Tac, Toe to test your knowledge of functions. This week, you must submit a program that matches the following specifications:

Printing Without a Newline

So far, each time we have called print() it has automatically added a newline character to the end of whatever string we pass as an argument. However, according to the Python 3 docs we can provide a named argument for the parameter end to change what gets printed at the end of our string. Here is an example:

print('Hello, ', end='')
print('World!')
print('This is a new line.')

Which prints the following output:

Hello, World!
This is a new line.

Named arguments are a more advanced feature in Python. If you are curious, this article dives into different types of arguments and parameters.

Submit Assignment

Submit Assignment