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]
4 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]4 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
Which features of words are used to separate numbers and texts into columns
ad-work [718]

Answer:Data Tools, Text to Columns can be used to separate data in a single column into multiple columns, such as if you have full names in one column and need a column with first names and a column with last names.

Explanation:

3 0
3 years ago
What is the unit of information called when a network adapter adds the source and destination mac address to the segment of data
Blababa [14]
MAC addresses are part of the header that's put on the packet.
3 0
3 years ago
Rajesh is considering whether to use a web app to collaborate with a group of friends on a project. What is one reason he should
vivado [14]

Rajesh might want to avoid the use of a web app for the project due to connectivity issues. Hence, one reason he might want to avoid using the Webb app is slow or poor internet connection.

Collaborating on a web application relies very heavily on network connectivity which is the what establishes the link ms allows the apllications to achieve optimum performance.

Therefore, slow internet connection is a major reason whuhe might want to avoid using a web app.

Learn more : brainly.com/question/25531734

6 0
3 years ago
Which layer abstracts away the need for any other layers to care about what hardware is in use?
Vlad1618 [11]

Answer:

data link layer

Explanation:

you answer is data link layer

3 0
2 years ago
An online museum is creating a site hosting hundreds of thousands of digital representations of art from around the world. The w
Firdavs [7]

Answer:

A. the museum can choose a heuristic approach which will achieve a lossless compression, but they cannot be sure that it is the most efficient compression for each image

C. algorithms for lossless compression exist, so the museum can use those to compress the image

Explanation:

4 0
3 years ago
Other questions:
  • The number of output for a decoder if the input is 4
    14·1 answer
  • Which of the following filenames is acceptable on both Windows and Mac<br> operating systems?
    9·1 answer
  • Who defined the term crowdsourcing in a Wired magazine article?
    15·1 answer
  • Why is it important to save a print copy of electronic sources
    5·1 answer
  • You’re browsing the internet and realize your browser is not responding. Which of the following will allow you to immediately ex
    11·1 answer
  • Describe data center technology and its relevance to modern-day cloud computing. Support your opinion with cited information.( S
    14·1 answer
  • ELO 3.6 Which type of iSCSI name requires a registered domain name to generate a unique iSCSI identifier?
    12·1 answer
  • Hubs connect network hosts in which configuration?
    7·1 answer
  • Which of the following is true of a procedure? Check all that apply.
    10·2 answers
  • What is folded card publishing?​
    5·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!