In this project you will learn how to write a Python program telling people all about you. Type the following into the window that appears:

Similar documents
In this project, you ll learn how to create 2 random teams from a list of players. Start by adding a list of players to your program.

Let s start by making a pencil, that can be used to draw on the stage.

Rock, Paper, Scissors

Let s start by making a pencil that can be used to draw on the stage.

Where's the Treasure?

Try what you learned (and some new things too)

Brain Game. Introduction. Scratch

Create Your Own World

Appendix A. Selected excerpts from behavior modeling session Examples of training screens

Memory. Introduction. Scratch. In this project, you will create a memory game where you have to memorise and repeat a sequence of random colours!

Create Your Own World

In this project, you will create a memory game where you have to memorise and repeat a sequence of random colours!

An easy user guide AN EASY USER GUIDE

2: Turning the Tables

In this project you ll learn how to create a times table quiz, in which you have to get as many answers correct as you can in 30 seconds.

Girls Programming Network. Scissors Paper Rock!

Chapter 2 Review. Name: Class: Date: ID: A. Multiple Choice Identify the choice that best completes the statement or answers the question.


UNDERSTANDING LAYER MASKS IN PHOTOSHOP

CSE 231 Fall 2012 Programming Project 8

Comparing Across Categories Part of a Series of Tutorials on using Google Sheets to work with data for making charts in Venngage

MIRROR IMAGING. Author: San Jewry LET S GET STARTED. Level: Beginner+ Download: None Version: 1.5

Blackfin Online Learning & Development

GameSalad Basics. by J. Matthew Griffis

Blend Photos With Apply Image In Photoshop

EXPLORATION 1.5. Magic Squares. PART 1: Describing magic squares and finding patterns

Using AutoCrat with Google Forms/Sheets

Graphs and Charts: Creating the Football Field Valuation Graph

Welcome to JigsawBox!! How to Get Started Quickly...

Ok, we need the computer to generate random numbers. Just add this code inside your main method so you have this:

How to Build a LimeSurvey: The Basics for Beginners

JAMES SWANWICK S CUT AND PASTE SYSTEM FOR LANDING JOBS IN JOURNALISM

BOOM! subtract 15. add 3. multiply by 10% round to. nearest integer. START: multiply by 2. multiply by 4. subtract 35. divide by 2

Kodu Game Programming

House Design Tutorial

Environmental Stochasticity: Roc Flu Macro

In this chapter, you find out how easy scripting is. The scripting basics set

How to create a survey with SurveyMonkey

It was late at night and Smartie the penguin was WIDE awake He was too excited to sleep because tomorrow was his birthday. He was really hoping to be

35-STEP CHECKLIST TO MAKING MONEY FROM YOUR. passion. talentedladiesclub.com

Sketch-Up Project Gear by Mark Slagle

Part II: Number Guessing Game Part 2. Lab Guessing Game version 2.0

The Slide Master and Sections for Organization: Inserting, Deleting, and Moving Around Slides and Sections

After you have completed the tutorial, you will be given an initial knowledge check by ALEKS to determine what topics you already know so ALEKS can

Mesh density options. Rigidity mode options. Transform expansion. Pin depth options. Set pin rotation. Remove all pins button.

Formulas: Index, Match, and Indirect

Multiplication and Division

ArchiCAD Tutorial: How to Trace 2D Drawings to Quickly Create a 3D Model

House Design Tutorial

Unit 6.5 Text Adventures

Car Ad Photoshop Tutorial Miss Van Lenten Tools: Paint brush, Eraser, Quick Selection/Magic Wand, Quick Mask, Layer Mask

Begin this assignment by first creating a new Java Project called Assignment 5.There is only one part to this assignment.

In this project you ll learn how to create a platform game, in which you have to dodge the moving balls and reach the end of the level.

Creating Journey In AgentCubes

Your LeCAP Calendar. Inside this guide. Applying for post-16 learning 2012/13. September March April. October November. May. June July.

How to Blog to the Vanguard Website

CPSC 217 Assignment 3

KFC - Restaurant General Manager

In this project you ll learn how to create a game, in which you have to match up coloured dots with the correct part of the controller.

15 TUBE CLEANER: A SIMPLE SHOOTING GAME

House Design Tutorial

House Design Tutorial

CHATS Meals On Wheels Online Ordering User Guide

BRUSHES AND LAYERS We will learn how to use brushes and illustration tools to make a simple composition. Introduction to using layers.

Patterns and Graphing Year 10

Fireworks. Level. Introduction: In this project, we ll create a fireworks display over a city. Activity Checklist Follow these INSTRUCTIONS one by one

The little BIG book of badness

Paper Prototyping Kit

Some code for this game has been provided for you. Open this trinket: This is a very basic RPG game that only has 2 rooms. Here s a map of the game:

Be Your Best Expect the Best Succeed Together

It was late at night and Smartie the penguin was WIDE awake He was too excited to sleep because tomorrow was his birthday. He was really hoping to be

Unit 5: What s in a List

AP Art History Flashcards Program

Pi Servo Hat Hookup Guide

Census Taker User Guide

ChatBot. Introduction. Scratch. You are going to learn how to program your own talking robot! Activity Checklist. Test your Project.

Lesson 3: Arduino. Goals

Excel 2016 Cell referencing and AutoFill

Objectives: Students will learn to divide decimals with both paper and pencil as well as with the use of a calculator.

MODULE 1 IMAGE TRACE AND BASIC MANIPULATION IN ADOBE ILLUSTRATOR. The Art and Business of Surface Pattern Design

How to Make a Template

This is a great place to play and explore your creativity! It isn't piecing but it is exciting to see what comes out of playing with the tools.

AreaSketch Pro Overview for ClickForms Users

"If You Want A Cheat-Sheet On How To Get Loads Of Traffic From Instagram Then Enter Your Information Below To Download It Right Away!

GOAL SETTING NOTES. How can YOU expect to hit a target you that don t even have?

TABLE OF CONTENTS. Logging into the Website Homepage and Tab Navigation Setting up Users on the Website Help and Support...

Speaking Notes for Grades 4 to 6 Presentation

Quick Fixes for Your Top English Challenges

THE UGLY DUCKLING. Teachers' notes.

Report Writing Class Lesson 6

Advanced Excel. Table of Contents. Lesson 3 Solver

Synergy Round. Warming Up. Where in the World? Scrabble With Numbers. Earning a Gold Star

Term Definition Introduced in: Tab(s) along the ribbon that show additional programs or features (e.g. Acrobat )

The original image. Let s get started! The final light rays effect. Photoshop adds a new layer named Layer 1 above the Background layer.

Hello and welcome to the CPA Australia podcast. Your weekly source of business, leadership, and public practice accounting information.

Lesson1MULTIPLICATION PROPERTIES

Generations Automatic Stand-Alone Lace By Bernie Griffith Generations Software

Learn about the RoboMind programming environment

READING STRATEGIES. Thinking About How You Read

Figure 9.10 This shows the File Scripts menu, where there is now a new script item called Delete All Empty layers.

Transcription:

About Me Introduction: In this project you will learn how to write a Python program telling people all about you. Step 1: Saying hello Let s start by writing some text. Activity Checklist Open the blank Python template Trinket: jumpto.cc/python-new. Type the following into the window that appears: 1

The line #!/bin/python3 just tells Trinket that we re using Python 3 (the latest version). Press run, and you should see that the print() command prints everything between the quote marks ''. If you make a mistake, you ll get an error message instead - telling you what went wrong! Try it! Delete the end quote ' or the closing bracket ) (or both) and see what happens. Replace the quote or bracket and click run to make sure your project works again. Save Your Project 2

You don t need a Trinket account to save your projects! If you don t have a Trinket account, click the down arrow and then click Link. This will give you a link that you can save and come back to later. You ll need to do this every time you make changes, as the link will change! If you have a Trinket account, you can click remix to save your own copy of the Trinket. Challenge: What s on your mind? Change the code above, to print something more interesting about you! 3

Save Your Project Step 2: ASCII art Let s print something much more fun than text ASCII art! ASCII art (pronounced ask-e ) is creating pictures out of text. Activity Checklist Let s add some art to your program - a picture of a dog! If you click run, you ll see that there s a bug in your new code. That s because your text contains a quote, which Python thinks means the end of the text! To fix this, just put a backslash \ before the quote in the word here's. This tells Python that the quote is part of the text. 4

If you prefer, you can use 3 quotes ''' instead of 1, which allows you to print multiple lines of text with 1 print statement: Save Your Project Challenge: About yourself Write a Python program to tell others about yourself, by using text and ASCII art. You can create images of your hobbies, friends or anything you like! Remember that the code you write in Trinket is public. Don t share any personal information like your full name or address! Here s an example: 5

Save Your Project Step 3: The Year 2025 You can also do calculations and print numbers. Let s find out how old you ll be in the year 2025. Activity Checklist To calculate how old you ll be in the year 2025, you need to subtract the year you were born from 2025. Add this code to your program: Notice that you don t need to put quotes around numbers. (You ll need to change the number 2006 if you were born in a different 6

year.) Click run and your program should print your age in the year 2025. You could improve your program by using input() to ask the user their age and store it in a variable called born. Run your program and then enter the year you were born. Did you get another error messgae? That s because anything typed into your program is text, and it needs to be converted to a number. You can use int() to convert the text to an integer ( integer means whole number ). You can also create another variable to store your calculation, and print that instead. 7

Finally, you can make your program easier to understand by adding a helpful message. Save Your Project Challenge: Your age in dog years Write a program to ask the user their age, and then tell them their age in dog years! You can calculate a person s age in dog years by multiplying their age by 7. In programming, the symbol for multiplication is *, and is usually shift+8 on the keyboard. 8

Save Your Project Challenge: Calculating text Did you know that you can also calculate text?! What does the following program print to the screen? See if you can guess correctly before running the program. Can you make up any words of your own? You could even make your own patterns! Save Your Project 9