mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(curriculum): remove repetitive explanations from movie ticket workshop (#67082)
This commit is contained in:
-7
@@ -11,13 +11,6 @@ In this workshop, you will practice how to use booleans and conditional statemen
|
||||
|
||||
Begin by declaring variables that store information about the user and the movie show.
|
||||
|
||||
As you learned in previous lessons, variables are assigned using the assignment operator (`=`) this way:
|
||||
|
||||
```py
|
||||
# Assigns the value 10 to variable x
|
||||
x = 10
|
||||
```
|
||||
|
||||
Create a variable named `base_price` to store the base price of the movie ticket and set its value to `15`. Create another variable named `age` to store the user's age and set its value to `21`.
|
||||
|
||||
# --hints--
|
||||
|
||||
+1
-7
@@ -7,16 +7,10 @@ dashedName: step-2
|
||||
|
||||
# --description--
|
||||
|
||||
Now you need to store some string values about the movie ticket. You can store strings in Python this way:
|
||||
|
||||
```py
|
||||
name = 'Alice'
|
||||
```
|
||||
Now you need to store some string values about the movie ticket.
|
||||
|
||||
Create a variable named `seat_type` to store the type of seat the user has selected and set its value to the string `Gold`. Create another variable named `show_time` to store the show time of the movie and set its value to the string `Evening`.
|
||||
|
||||
Remember to surround both values with either single or double quotes.
|
||||
|
||||
# --hints--
|
||||
|
||||
You should declare a variable named `seat_type`.
|
||||
|
||||
Reference in New Issue
Block a user