559 attributed reviews in the last 3 years
Refreshingly small course sizes
Outstandingly good courseware
Whizzy online classrooms
Wise Owls only (no freelancers)
Almost no cancellations
We have genuine integrity
We invoice after training
Review 30+ years of Wise Owl
View our top 100 clients
This exercise is provided to allow potential course delegates to choose the correct Wise Owl Microsoft training course, and may not be reproduced in whole or in part in any format without the prior written consent of Wise Owl.
Your task for this exercise is to write a program to add together two numbers typed in by a user. Here's what a typical output from the program might look like:
The hard part of this exercise is making sure that you're working with numbers when you need numbers, and text when you need text.
To being with, create a new program called Slack adder.py. Within this create two variables to equal the two inputs typed in by your user.
You'll need to use the int() function to convert the text typed in by your user into integers, otherwise you won't be able to subsequently add the two numbers together. You can assume that your user will be well-behaved and type in only numbers.
Create a third variable to hold the sum of your two numbers, then print out your results (this time you'll need to use the str() function to turn your numbers back into text, before using the + sign to concatenate the bits of text you need to form your message).
When your program is working to your satisfaction, save it and close it down!
25 Aytoun Street