JavaScript required
We’re sorry, but Coda doesn’t work properly without JavaScript enabled.
Gallery
Solution Variables
Share
Explore
Gallery
Solution Variables
Solution Variables
Solution
The Task
Python Starter Code
CodeClips
Python Starter Code
Copy and paste the code below into your
main.py
file before you begin the task.
favouriteApp
=
"Instagram"
luckyNumber
=
9
decimalNumber
=
3.5
firstInitial
=
'F'
vote
=
True
print
(
'My favourite app is '
+
favouriteApp
)
print
(
'My favourite lucky number is '
+
str
(
luckyNumber
)
)
print
(
'My decimal number is '
+
str
(
decimalNumber
)
)
print
(
'My first initital of my first name is '
+
firstInitial
)
print
(
'Pineapple on a pizza? '
+
str
(
vote
)
)
Below is a link to the starter task. You can right click
open on replit
to demo the answer to pupils and talk through the code.
Gallery
Share
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
Ctrl
P
) instead.