'F' → Fullscreen
Open your coding environment and write your very first Python program.
About naming. Every activity tells you what to name your work. Depending on your setup that might be a project, a workspace, or a file — the name is what matters, so your work can be found and graded.
print("Hello, world!")You just ran a one-line program. Real programs are longer, and the hardest part is usually not the typing — it is working out what the steps are and what order they go in.
Pseudocode is how programmers plan that out. You write the steps in plain language, in order, with no programming syntax at all. No quotes, no parentheses, nothing to get wrong. For this class, use these three words:
Here is a plan for a program that greets someone by name:
INPUT the person's nameSET greeting to "Hello, " joined with the nameDISPLAY greetingNotice that those three words line up with three of the four basic functions from today: Input, Processing, and Output.
Below is the plan for one exchange in a game — a drone drops out of the ceiling and you fight it. Somebody already wrote the steps. Your job is to read them.
INPUT the player's choice: attack or dodgeSET damage to the player's weapon powerSET the drone's health to its health minus damageDISPLAY the drone's remaining healthINPUT the player's next choiceSET the player's score to its score plus 100#Part A. Write the numbers 1 through 6 down your page. Next to each one, put Input, Processing, or Output.
Part B. This game has a problem — you can beat the drone and it never tells you. Write the one line that is missing, using one of the three words, and say where in the list it belongs.
There is no Python to write and nothing to run for this task. If you catch yourself typing a parenthesis, you have drifted into code — go back to plain words.
Verify your program works correctly.
Hello, world!Answer the following questions before submitting your work.
print("Hello") than a long row of 1s and 0s?Submit the required files to the appropriate dropbox.