1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Over [174]
3 years ago
12

It is telling me that I have an invalid syntax error in my code (I am using Python3, btw). What is wrong with it? The code is be

low:
num = float(input("What is your first number, %s? (Enter the first you will be using): " %(name, )))
Computers and Technology
1 answer:
elena55 [62]3 years ago
4 0
I copied and pasted your post into my Python3.5.1 interpreter and got:

>>> name = "roger"
>>> num = float(input("What is your first number, %s? (Enter the first you will be using): " %(name, )))
What is your first number, roger? (Enter the first you will be using): 43.0
>>> num
43.0

Your code looks good, and runs good. At this point, I'd be suspicious that you're trying to execute this on a Python2.x interpreter. Try this (I translated to PythonV2 and tested it):

num = float(raw_input("What is your first number, %s? (Enter the first you will be using): " %(name, )))



You might be interested in
Lenny copied and pasted content from a commercial website into his research paper without citing his source, passing the work of
Sedbober [7]
Lenny might be either suspended
Or might be failed in that particular course
6 0
1 year ago
Harry is creating a PowerPoint presentation and wants all the slides to have a uniform look.
Ne4ueva [31]

Answer:

✔ Slide Master view

✔ layout and theme

✔ PowerPoint template

Explanation:

On Edg

4 0
3 years ago
A pointing device controls the movement of the ____.
andrey2020 [161]
<span>A pointing device controls the movement of the </span>Mouse Pointer
3 0
3 years ago
What does this translate to?: 01001001 01110011 00100000 01100010 01110010 01100001 01101001 01101110 01101100 01111001 00100000
Anastasy [175]
"Is Brainly down?" would be the text translation
7 0
3 years ago
Create a flowchart to print numbers from 1 to 100
Mkey [24]

Answer:

brainliest plsss

Explanation:

I think so this is what you had asked!!!!!!

hope it helps

4 0
3 years ago
Other questions:
  • We will pass in 2 values, X and Y. You should calculate XY XY and output only the final result. You will probably know that XY X
    13·1 answer
  • File-sharing programs such as Napster, Kazaa, and iMesh make it possible for individuals to exchange music files over the Intern
    7·1 answer
  • Which of the following is the code of acceptable behaviors users should follow while on the Internet; that is, it is the conduct
    15·1 answer
  • Similarities between drawing toolbar and editing toolbar​
    12·2 answers
  • BIm computer class I need answers please
    5·2 answers
  • What keyword must be used on any method (function) on your class that is called from your main() method?
    15·1 answer
  • How ssd is better than normal sata and pata HDD​
    11·1 answer
  • What would a system unit that is integrated with the display and keyboard would be considered?
    6·1 answer
  • search engines use software that combs the web to find webpages and add new data about them to the database. what is this softwa
    5·1 answer
  • What does an arrow after a command indicate
    13·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!