Which of the following will run correctly when making a sprite say "Hello Mike" using a…
- User
Which of the following will run correctly when making a sprite say "Hello Mike" using a string variable?
Which of the following will run correctly when making a sprite say "Hello Mike" using a string variable?
my_friend = "Mike"
sprite.say("Hello " + my_friend)
my_friend = "Mike"
sprite.say("Hello my_friend")
my_friend = "Mike"
sprite.say("Hello"my_friend)
my_var = "Mike"
sprite.say("Hello " + my_friend +)
- Assistant
The first option will run correctly:
my_friend = "Mike"
sprite.say("Hello " + my_friend)
- User
The following code will run as intended without an error
stage.set_background(concert")
The following code will run as intended without an error
stage.set_background(concert")
True
False
- Assistant
False
The code should have the background filename in double quotes like:
stage.set_background("concert")