Can someone help me on Python plz?


#1


Replace this line with your code. Do not remove the backticks that are above or below this line.


#2

This is my code.
"""Assign the string "Ping!" to
the variable the_machine_goes on
line 5, then print it out on line 6!"""

the_machine_goes = 'Ping!"
print "the_machine_goes"

and this is what it tells me to do.

Printing Variables
Great! Now that we've printed strings, let's print variables

Instructions
Declare a variable called the_machine_goes and assign it the string value "Ping!" on line 5.
Go ahead and print the_machine_goes in line 6.
?
Hint
Make sure you're setting your variable like this:

the_machine_goes = "Ping!"


#3

Hi this part

the_machine_goes = 'Ping!"
print "the_machine_goes"

First you declare the variable the_machine_goes you assign it the string "ping". Then you wrote your print with "the_machine_goes" Inside " " so Its return the string "the_machine_goes" if you want it to print Ping! remove the " " around the_machine_goes


#4

wizmarco i have another one i need help on can u help me on it to cause i am going nuts can't find it.

@wizmarco

It's called Conditionals and Control Flow:

Create comparative statements as appropriate on the lines below!

Make me true!

bool_one = 3 < 5 # We already did this one for you!

Make me false!

bool_two = 7 == 7

Make me true!

bool_three = 9 > 2

Make me false!

bool_four = 7 <= -7

Make me true!

bool_five = -2 ==> 2

what am i doing wrong?

INSTRUCTIONS:

How the Tables Have Turned
Comparisons result in either True or False, which are booleans as we learned before in this exercise.

Make me true!

bool_one = 3 < 5
Let's switch it up: we'll give the boolean, and you'll write the expression, just like the example above.

Instructions
For each boolean value in the editor, write an expression that evaluates to that value.

Remember, comparators are: ==, !=, >, >=, <, and <=.

Use at least three different ones!

Don't just use True and False! That's cheating!

?
Hint
For bool_two, you might try:

bool_one = 8 > 7


#5

Mine is with exercise 6 (And)
bool_four = -(1**2) < 2**0 and 10 % 10 <= 20 - 10 * 2
I thought the operator % only substitutes %s, if not what does 10 % 10 mean here?