QUESTION IMAGE
Question
lesson 4: variables and data flow
saved a few seconds ago
do this:
youre building a fitness app that tracks a users daily step goal. your app needs to remember how many steps the user is aiming for each day.
- create a variable called step_goal
- assign it a number, like 8000 or 10000.
- use print() to show a message like
your daily step goal is 10000 steps.
1 # this program stores and prints a da
2 step_goal = 10000
3 # your code goes here!
4 print(\your daily step goal is 10000\)
Step1: Create variable
step_goal = 10000
Step2: Print message
print("Your daily step goal is " + str(step_goal) + " steps.")
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
step_goal = 10000
print("Your daily step goal is " + str(step_goal) + " steps.")