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
vaieri [72.5K]
3 years ago
11

Slice indices must be integers or none or have an __index__ method

Mathematics
1 answer:
Rama09 [41]3 years ago
8 0

Answer:

This is an error (TypeError) that is displayed by the Python interpreter when one of the parameter in a slice function is not a value of type integer or None.

For example:

>>> a = 'welcome'

>>> a[2.2:3]

Traceback (most recent call last):

 File "<stdin>", line 1, in <module>

TypeError: slice indices must be integers or None or have an __index__ method

The error occur because the value 2.2 is not an integer or None

Step-by-step explanation:

You might be interested in
Can somone help me pls
ratelena [41]

Answer:

Step-by-step explanation:

5 0
3 years ago
Multiple choice. Use the Law of Sines to find the missing angle of the triangle. Find m angle C to the nearest tenth if c = 111
nalin [4]

Answer:

Both A and B are possible.

Step-by-step explanation:

It's both!

This is a might tricky. First you have to find the altitude. You have to determine if this is a real triangle.

Sin(22) = opposite / hypotenuse. The hypotenuse = 111. The angle is 22

opposite = hypotenuse * sin(22)

opposite = 111 * sin(22)

opposite = 41.58  and this is the altitude.

What have you learned?

Since 42 is larger than 41.58 you have 2 solutions to the triangle. One of the angles is acute, and the other one is obtuse. They are supplementary angles.

Sin(C) / c = Sin(A) / a

Sin(C) = c * Sin(22) / 42

Sin(C) = 111*sin(22)/ 42

Sin(C) = .99003

Sin(C) = 81.9

So that's your first answer. The second answer comes from Finding the supplement to this angle

supplement + 81.9 = 180

supplement = 180 - 81.9

supplement = 98.1

7 0
3 years ago
In the table below, x represents miles traveled and y represents the cost to travel by train.
Fiesta28 [93]

Answer:

4.00

Step-by-step explanation:

Given

x:   2  ,      5   ,     8     , 12

y: 8.50, 15.25, 22.00. 31.00

Required

Determine the y intercept

First, we calculate the slope:

m = \frac{y_2- y_1}{x_2 - x_1}

Where

(x_1,y_1) = (2,8,50)

(x_2,y_2) = (12,31.00)

m = \frac{31.00 - 8.50}{12 - 2}

m = \frac{22.5}{10}

m = 2.25

Next, we calculate the equation:

y - y_1 = m(x - x_1)

Where:

(x_1,y_1) = (2,8,50)      

m = 2.25

The equation becomes:

y - 8.50 = 2.25(x - 2)

y - 8.50 = 2.25x -4.5

Make y the subject

y = 2.25x -4.5+8.50

y = 2.25x +4

Take x =0; to get the y intercept

y = 2.25*0 +4

y = 4

<em>Hence, the y intercept is 4.00</em>

8 0
3 years ago
Read 2 more answers
PLEASE PLEASE PLEASE HELP ME ITS A MATH PROBLEM!!! EXPLANATIONS WELCOMED
nikdorinn [45]

Answer:

  8

Step-by-step explanation:

The given ratios can be combined to a composite ratio using least common multiples.

<h3>Given ratios</h3>

We can identify each of the entities with a 2-letter designation:

  TT - Tumtum tree; TW - tulgey wood; BS - frumious Bandersnatch;

  ST - slithy tove; BG - borogoves; MR - mome raths; JW - Jabberwocky;

  JB - Jubjub birds.

Then the given ratios are ...

  • 20 TT : 1 TW
  • 1 TW : 1 BS
  • 5 ST : 2 BG
  • 2 MR : 1 JW
  • 2 JB : 200 TT . . . . (reduces to 1 : 100)
  • 200 MR : 1 BG
  • 5 JB : 1 ST

<h3>Composite ratios</h3>

The path from BS to JW is unique, so we can work our way there one ratio at a time. Having done this once, we can go back and do it again with the least possible multiplier.

Here, that turns out to be 125 Bandersnatches. We can combine these to the composite ratio ...

  125 BS : 125 TW : 2500 TT : 25 JB : 5 ST : 2 BG : 400 MR : 200 JW

Then the ratio of Bandersnatches to Jabberwocks is 125 : 200 = 5 : 8.

If there are 5 frumious Bandersnatches, there should be 8 Jabberwocks.

__

<em>Additional comment</em>

We know 1 JW : 2 MR and 200 MR : 1 BG. In order to get a common value of 200 MR in these ratios, we need to multiply the first by 100:

  100 JW : 200 MR : 1 BG

Next, we notice the other ratio involving BG is 2 BG : 5 ST, which means we need to multiply by 2 again:

  200 JW : 400 MR : 2 BG : 5 ST

The number of JB is 5 times the number of ST, so this extends to ...

  ... 5 ST : 25 JB

The number of TT is 100 times the number of JB, so we have ...

  ... 5 ST : 25 JB : 2500 TT

Continuing in like fashion, we get the composite ratio shown above. We originally worked this starting from BS. Reducing the JB/TT ratio from 2/200 to 1/100 helped eliminate an extra factor of 2.

4 0
2 years ago
Read 2 more answers
Please help!! Giving brainliest and extra points!
alexgriva [62]

Answer:

radius of circle is 11 cm

6 0
3 years ago
Other questions:
  • PLEASE HELP I have been trying to figure this out for a really long time and I want to get the best grade on my test !
    13·1 answer
  • Hello!! Plz ans with explanation.. Plz!! I need it ASAP!!! PLZ TYSM<br>Faaast!!
    15·1 answer
  • Create multiple representations of each line described below
    14·1 answer
  • What is the difference between the solution of a system of linear inequalities and the solution of a system of linear equations?
    7·1 answer
  • Which of the following is the best definition of the domain of a relation
    9·2 answers
  • !pls help!<br> Use a net to find the surface area
    5·1 answer
  • Do this please!!!!!!!
    15·1 answer
  • In the problem 12+58=70,12 and 58 are called factors true or false
    7·2 answers
  • Help me with this question i’ll give you all five stars
    10·1 answer
  • In a box there are 50 counters :white ones,blue ones and red ones .There are eleven times as many white ones as blue ones.There
    5·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!