how many string object are in 128,55 in python

How Many String Object Are In 128,55 In Python

Answers

Answer 1

Answer:

Explanation:

In the following examples, input and output are distinguished by the presence or absence of prompts (>>> and …): to repeat the example, you must type everything after the prompt, when the prompt appears; lines that do not begin with a prompt are output from the interpreter. Note that a secondary prompt on a line by itself in an example means you must type a blank line; this is used to end a multi-line command.

Many of the examples in this manual, even those entered at the interactive prompt, include comments. Comments in Python start with the hash character, #, and extend to the end of the physical line. A comment may appear at the start of a line or following whitespace or code, but not within a string literal. A hash character within a string literal is just a hash character. Since comments are to clarify code and are not interpreted by Python, they may be omitted when typing in examples.

Answer 2

There are 4 strings within the best_list. Strings can be easily identified becuase they're surrounded with quotes. For example, "hello" is a string because it has the quotes around it.


Related Questions

KAPWING Video Editing Software allows you to use existing You Tube Videos in your design.

Answers

Answer:

Yea it should, it depends are you using a phone or a PC? because most of the time internally built in editing software on computers is better.

7.5 Code practice Plz answer ASAP

Answers

def calculate_GPA(grade, weight):

   grades = {"A": 4, "B": 3, "C": 2, "D": 1, "F": 0}

   if weight == 0:

       return grades[grade]

   else:

       return grades[grade] + 1

classes = int(input("How many Classes are you taking? "))

total = 0

for x in range(classes):

   letter = input("Enter your Letter Grade: ")

   user_weight = int(input("Is it weighted? (1 = yes) "))

   grade = calculate_GPA(letter, user_weight)

   total += grade

   print("Your GPA score is: ", grade)

print("Your weighted GPA is a",(total/classes))

I wrote my code in python 3.8. I was able to replicate the output in your picture exactly. If you need me to make any changes, I'll do my best.

The function is an illustration of for loops

For loops are used to perform repetitive operations; just like the while loop

The program in Python, where comments are used to explain each line is as follows:

#This defines the studentGPA function

def studentGPA(grade, weight):

   #This initializes a dictionary for all grades

   allGrade = {"A": 4, "B": 3, "C": 2, "D": 1, "F": 0}

   #This sets the return grade to 0

   retValue = 0

   #If the grade is valid

   if grade in allGrade:

       #If the weight is 0

       if weight == 0:

           #Then score is not graded

           retValue = allGrade[grade]

       #If otherwise

       else:

           #This adds 1 to the return grade

           retValue = allGrade[grade]+1

   #This returns the grade point

   return retValue

#The main begins here    

#This gets the number of classes

klass = int(input("How many Classes are you taking? "))

#This initializes the total grade to 0

total = 0

#This following is repeated for each class

for x in range(klass):

   #This gets input for the letter grade

   letterGrade = input("Enter your Letter Grade: ")

   #This gets input for the weight

   weight = int(input("Is it weighted? (1 = yes) "))

   #This gets the corresponding grade

   grade = studentGPA(letterGrade, weight)

   #This prints the grade point

   print("Your GPA score is: ", grade)

   #This calculates the total grade

   total += grade

#This calculates the GPA

GPA = total/klass

#This prints the GPA

print("Your weighted GPA is a",GPA)

Read more about for loop at:

https://brainly.com/question/12736327

Other Questions
Which statement is true about gold and helium?A. They both occur as a gas at room temperature.B. They are both made of subatomic particles.C. They are both used in balloons.D. One of made of protons and the other of only electrons. Identify the x- and y-intercepts of the equation4x - y = 8 A basketball player made 44 out of 100 attempted free throws. What percent of free throws was made? Can anyone tell me what this means Whats the song by the lyrics; whoever gets them right gets brainleist. Ima do more in the future. 1. I remember years ago someone told me I should take caution when it comes to love 2. Laying in the silence waiting for the sirens signs any signs Im alive still 3. Shooting for the stars always had a vision 4. Don't start caring about me now Don't come out Don't show up Don't start now 5. Did somebody, did somebody Break your heart? Lookin like an angel But 6.You know it used to be mad love So take a look what you've done 'Cause, baby, 7. No, I can't sleep until I feel your touch I said, ooh, I'm drowning in the night Oh, 8. All seem to say throw cares away Christmas is here bringing good to cheer to....9. Was their something I could have said to make it all feel better I wish I knew you had a storm to weather so.....10. Why u always in the mood ******* around actin brand new I aint trying to tell you what to do but.... How many and what types of chromosomes are found in every one of your cells? what type of figurative sentence is thisthe sneaky snake slithered slowly . A skydiver jumps from an airplane and opens his parachute. At some point during his fall, the downward force of gravity on the skydiver is equal to the upward force of drag on the parachute. Which of the following best describes the skydiver's motion at this point? The skydiver is gaining speed downward. The skydiver is moving at a constant speed. The skydiver is decreasing in speed. Which statement best explains the myth about how Romulus and Remus founded Rome? ... sino una. Hay una muchachamisteriosa en la fiesta. Nadie conocea la muchacha. Ella se sienta en elsof y no habla con nadie.in english Carolina, t ___________________ un lpiz?a. tieneb. tengoc. tienesd. tenis 20 pointsI need help asappp what is the temperature in the fahrenheit? 10-2+3x19-8= first to answer will get brainlyest Write an equation to find x by substituting.3. What does it mean to substitute here?5x - 2 = 3x +4 A rocket is launched from a tower. The height of the rocket, y in feet, is related to the time after launch, x in seconds, by the given equation. Using this equation, find the time that the rocket will hit the ground, to the nearest 100th of second.y=-16x^2+116x+75 Use the right triangle shown to answer the question.2632*not drawn to scaleWhat is the approximate value of x? can someone help me understand this better on what she means by this with procedures The table represents a function.What is f(-2)?0 -3-6-2f(x)314-2O-1O 1O 3 In 1965 King and his wife, Coretta Scott King, led demonstrators on ahistoric 54-mile march that took five days, from where to where?