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
What is the relationship between CAD and CIM ?
Marat540 [252]
<span> CAM( computerised Aided Manufacture) is when you have workers being helped by computerised tools, CIM (computerised intergated manufacture) is when the whole process is computerised, in manufacture this usually uses robotic arms. These can manufacture 24/7 in needed, they can work very accurately ( they are faster and stronger than a human arm) </span>
5 0
3 years ago
Read 2 more answers
What is a data display in which the frequencies of different values are represented by small round points?
polet [3.4K]

Answer:

Answer to the following question is Dot plot

Explanation:

A dot chart is also called the dot plot it is the type of a simple histogram like chart that is used in the statistic for relatively the small data set where the values fall into the number of a discrete bin.  

To draw the dot plots, count the numbers of data points falling in each of the bins and draw the stacks of dot that numbers high for each of the bins.

6 0
3 years ago
Read 2 more answers
30 mins and I will give Brianlest what is the difference between a method and a function in which ways are they similar why do y
omeli [17]

Answer:

For 1), you should also add that methods in C++ are called member functions. Thus, the difference between functions and methods in this context is analogous to the difference between functions and member functions in C++. Furthermore, languages like Java only have methods. In this case, functions would be analogous to static methods and methods would have the same meaning. For 2), you should add that a method is able to operate on the private instance (member) data declared as part of the class. Any code can access public instance data.   A function is a mathematical construct. I would say all methods are functions but not all functions are methods

Explanation:

8 0
3 years ago
Select all that apply.
Nat2105 [25]

Answer:

  • Inserting headers or footers
  • Inserting a watermark

Explanation:

A Master Page is a page which can be used with the majority of the documents of your paper as a reference. Master pages may have visuals elements, such as headlines, footers, column headings, etc that occur on all publishing pages.

7 0
3 years ago
What is the output of the code below?
sp2606 [1]

Answer:

The output of the given code is 56.43

Explanation:

As the code is given in java language the following are the code

public class code

{

public static void main(String[] args)

{

double num = 56.4321;

System.out.print("%.2f", 56.4321);

}

}

The %f means that it print the floating point number and .2 means that it print the first two digit of the given number after the point .

so " %.2f "means that it print the value first 2 digit of floating point number after the point .

Therefore it print 56.43

7 0
3 years ago
Other questions:
  • ________ is a password-cracking method wherein the attacker compares passwords to lists of common words.
    12·1 answer
  • • In your response, please include some examples of the three different types of storage.
    11·2 answers
  • What are horizontal and vertical page break? how and where are these inserted?​
    10·1 answer
  • What is the missing line of code?
    7·1 answer
  • In our discussion of Computer Hardware, we talked about three essential hardware components that are there inside every computer
    14·1 answer
  • The used of PPE in the shop includes the following, except:
    10·2 answers
  • When entering information for a new contact in the address book, Outlook will automatically create a _____. A. Invitation B. Res
    7·1 answer
  • How to do GCD on small basic?​
    7·1 answer
  • Write a program that reads a list of integers, and outputs the two smallest integers in the list, in ascending order. The input
    5·1 answer
  • it is good to know and use the npsd framework while solution envisioning as part of the value discovery cycle. What is NPSD?
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!