Question
Invalid syntax for line 13?
def equals(a,b): a=(1,2,3) b=(1,2,2) 8 9 10 11 12 13 14 15 16 17 19 if a = b : print(same) else: print(different)
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Invalid syntax for line 13:

Error is SyntaxError

We have to use == not =

Modified code:

def equals(a,b):
   a=[1,2,3]
   b=[1,2,2]
  
   if a==b:
       print('same')
   else: print('different')

Add a comment
Know the answer?
Add Answer to:
Invalid syntax for line 13? def equals(a,b): a=(1,2,3) b=(1,2,2) 8 9 10 11 12 13 14...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Cork price: 16 10 15 10 17 11 14 13 11 14 11 16 18 16...

    Cork price: 16 10 15 10 17 11 14 13 11 14 11 16 18 16 10 17 14 14 16 7 10 12 19 15 16 14 9 12 21 13 10 16 12 16 13 17 17 13 14 18 11 12 15 16 13 18 16 17 12 12 14 9 11 14 19 13 11 17 11 13 15 14 18 18 18 12 10 11 13 14 11 14 18 13 13 19 17 14...

  • Cork price: 16 10 15 10 17 11 14 13 11 14 11 16 18 16...

    Cork price: 16 10 15 10 17 11 14 13 11 14 11 16 18 16 10 17 14 14 16 7 10 12 19 15 16 14 9 12 21 13 10 16 12 16 13 17 17 13 14 18 11 12 15 16 13 18 16 17 12 12 14 9 11 14 19 13 11 17 11 13 15 14 18 18 18 12 10 11 13 14 11 14 18 13 13 19 17 14...

  • Let U - (7, 8, 9, 10, 11, 12, 13, 14, 15, 16). A - 17,...

    Let U - (7, 8, 9, 10, 11, 12, 13, 14, 15, 16). A - 17, 9, 11, 13, 15), B = {8, 10, 12, 14, 16), and C (7, 8, 10, 11, 14, 15). List the elements of each set. (Enter your answers using roster notation Enter EMPTY or for the empty set.) (a) Anonco (6) AU BUBNC (c) (A U BY C

  • Let U - (7, , 9, 10, 11, 12, 13, 14, 15, 16), A = 17,...

    Let U - (7, , 9, 10, 11, 12, 13, 14, 15, 16), A = 17, 9, 11, 13, 15), 8 - (8, 10, 12, 14, 16), and C - {7, 8, 10, 11, 14, 15). List the elements of each set. (Enter your answers using roster notation. Enter EMPTY or for the empty set.) (a) Anonc (b) (AU B9) (c) (c) (A Uncs

  • Alcohol Placebo 9 8 10 8 11 9 12 16 13 11 15 11 17 12...

    Alcohol Placebo 9 8 10 8 11 9 12 16 13 11 15 11 17 12 19 13 20 15 21 15 What is the mean, median, mode, and standard deviation for the alcohol group? what is the mean median, mode, and standard deviation for the placebo group? what is the most appropriate graph to use for the placebo group?

  • Let U = {7, 8, 9, 10, 11, 12, 13, 14, 15, 16), A = {7,...

    Let U = {7, 8, 9, 10, 11, 12, 13, 14, 15, 16), A = {7, 9, 11, 13, 15), B = (8, 10, 12, 14, 16), and C (7, 8, 10, 11, 14, 15). List the elements of each set (Enter your answers using roster notation. Enter EMPTY or for the empty set.) (a) A( BC) (b) AU B9) (anc (c) (A U BENCE

  • 7 8 9 10 11 12 13 14 15 16 17 18 19 20 ) The...

    7 8 9 10 11 12 13 14 15 16 17 18 19 20 ) The human heart is found in which location? 10 Between the right midclavicular line and the right border of the sternum and below the clavicle to the eighth rib 20 Between the second and the fifth intercostal spaces from the right edge of the sternum to the loft midclavicular line 30 Between the third and sixth intercostal spaces from the left midclavicular line to the...

  • Drive 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15...

    Drive 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 16) Calculate the equivalent capacitance from points A to B using the figure if each capacitor has a capacitance of 1.0uF earch Dashb Enter your response Gm Answer Chapter 19- Homework Due Fri Mar 15th

  • Year A B 1 10% 9% 2 -15% 16% 3 14% -10% 4 13% -12% 5...

    Year A B 1 10% 9% 2 -15% 16% 3 14% -10% 4 13% -12% 5 10% 21% 6 13% 11% 7 -12% 14% 8 10% -10% 9 10% -12% 10 -19% 21% What is the correlation and covariance between these two assets?

  • Price D 1 D 2 S 1 S 2 $12 5 9 19 14 $10 8...

    Price D 1 D 2 S 1 S 2 $12 5 9 19 14 $10 8 12 17 12 $8 11 15 15 10 $6 13 18 13 8 $4 16 21 11 6 $2 18 24 9 4 Table 2 If D2 and S2 represent the demand and supply schedules in a particular market, then the equilibrium price and quantity are ________ and _________, respectively. $10; 12 $6; 18 $8; 15 $12; 12

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT