Question

x=full.split()

y=full.split('.')

Consider the code
full="L do nor like green eggs and ham.
lilke themisam- I-am!
I do nor
which uf me followng evaluares to Tfre?
a) x. count ("ham") =3'
b) X. count ("do") == 2
C) X. index ('not ")== 10
d) len(y) ==3
es
%3D
ニニ
Ten (x):= 14
f)
Ten (x)==13
2 Ten ly) ==2
X.count ("sam") == |
Expand
Transcribed Image Text

Consider the code full="L do nor like green eggs and ham. lilke themisam- I-am! I do nor which uf me followng evaluares to Tfre? a) x. count ("ham") =3' b) X. count ("do") == 2 C) X. index ('not ")== 10 d) len(y) ==3 es %3D ニニ Ten (x):= 14 f) Ten (x)==13 2 Ten ly) ==2 X.count ("sam") == |

Expert Answer

Want to see the step-by-step answer?

Check out a sample Q&A here.

Want to see this answer and more?

Experts are waiting 24/7 to provide step-by-step solutions in as fast as 30 minutes!*

*Response times may vary by subject and question complexity. Median response time is 34 minutes for paid subscribers and may be longer for promotional offers.
Tagged in
Engineering
Computer Science

Python

Programing Language

Related Computer Science Q&A

Find answers to questions asked by students like you.

Q: Write a c++ program that accepts three non-negative integers from the user and print true if two or ...

A: Program code: //include the required header files #include <iostream> using namespace std; //...

Q: please help

A: 1) Matrix A

Q: For this Project you need to add methods after every case so that after every function like withdraw...

A: public class BankTeller{ public static void main(String[] args) {    int balance=1000, deposit,withd...

Q: struggling please help

A: -> Given code has bugs because we can't do v(i^2) in MATLAB and sum is not s^1/3. a) Correct code...

Q: I am currently writing an outline for my proposal outline. Its about problem at work finding a solut...

A: Some of the data cleaning methods as follow: 1. Remove Irrelevant Values The first and foremost thin...

Q: A set-associative cache consists of 64 lines, or slots, divided into four-line sets. Main memory con...

A: Number of lines in the set associative cache = 64 bitMain memory size = 4K blocks Word Size = 128 wo...

Q: Write a program in C++ that reads a list of enrollments from a file and prints a class roster for th...

A: #include <iostream>#include <fstream> using namespace std; /*** structure to store stude...

Q: Question Explain EFS encryption key and BitLocker Drive Encryption

A: EFS operates by encrypting a file, by utilizing the File Encryption Key, or FEK, which is a bulk sym...

Q: Write a python program with a function that accepts a string as an argument and returns a copy of th...

A: Program Plan: Prompt and read a strin from the user and store it in strin. Call function sent_case(...

Q: Workflow of computer

A: Workflow of computer The workflow of a computer consists of step by step processes. It consists of ...

Q: Capital QuizWrite a program that creates a dictionary containing the U.S. states as keys, and their ...

A: Python code:   import randomquiz={'Andorra':'la Vella','Afghanistan':'Kabul',\      'India': "Delhi"...

Q: Write Program in Csharp to create a Guess a Number Application

A: C#code:   using System; using System.Collections.Generic; using System.Text; class Program { st...

Q: tme smng memod upper() alters a smg in place by changong all oř ;ls WHers When the meshod is the smn...

A: upper() method returns the uppercased string from the given string. It converts all lowercase charac...

Q: Generations of computer

A: Computer history goes back several decades, and there are five generations of computers that can be ...

Q: describe the trend of digital device convergence and how it applies to mobile device

A: Digital convergence is the ability to view the same multimedia content from multiple devices. It has...

Q: What are the main types of data patterns? Give examplesof each type

A: DATA PATTERNS - The data patterns that are of different types are very much important and also usefu...

Q: exampleOne This program reads data from a physical file, create a reference to the file, perform a c...

A: Import the required library files. A file is created and kept in root directory which is the same as...

Q: List the steps to follow in the following ABB to find the number 28 50 30 65 (10 35 53 70 1 25 (15 2...

A: To find the number 28 from the given tree.   The given tree is:  

Q: 1. With reference to Figure 6.12, what are XI, X2 and X37 Choose only one option. (a) Roles. (b) Pri...

A:  Answer : 1  Option (C) is correct With reference to figure 6.12 , the x1,x2 and x3 are Actors. An A...

Q: Answer all the following questions. (Show your complete work not just the result) 1. Convert the a) ...

A: Given, The base of binary number system = 2 The base of the octal number system = 8 The base of the ...

Q: Write a python program to multiply the elements of two arrays in reverse order and then sum them up....

A: Hey, since there are multiple questions posted, we will answer first question. If you want any speci...

Q: Make a table chair program using java language.

A: Below is the required code in java. Save the program file with name TableAndChairs.java to successfu...

Q: Let B be an array of size n >= 6 containing integers from 1 to n – 5, inclusive, with exactly fiv...

A: The, answer has given below:

Q: iven an array of integers return the sum of the values stored in the first and last index of the arr...

A: PROGRAM: //Header file import java.util.*;   //Defining the class class Class1 {     //Defining endS...

Q: Consider two hosts, A and B, connected by a single link of rate R bps. Suppose that the two hosts ar...

A: Introduction: The transmission delay (dtrans) refers to the time duration that is required to delive...

Q: Create a c program that reads a string with a maximum length of 30 from the keyboard . The program s...

A: The, answer has given below:

Q: When there is a lack of specifications, service-oriented architecture (SOA) is preferred to SDLC for...

A: True

Q: Why do we use contingency tables, instead of just presenting the graphical results

A: Contingency tables  are also known as the cross tables and the  two way tables which are used to tel...

Q: Write briefly about the following and mention an example of each of them:a. End to end congestion co...

A: Congestion occurs due to overload, and is exacerbated by network heterogeneity. Heterogeneity is a w...

Q: write a c++ program that asks the user to enter 6 integers which will be stored in an array the prog...

A: Below is the required C++ code. Approach of Program: Include necessary header files and use namespa...

Q: In Java Please

A: import java.io.BufferedReader;import java.io.InputStreamReader;import java.util.ArrayDeque;import ja...

Q: Evaluate situations in which you have seen people react to program and app problems on their compute...

A: The, answer has given below:

Q: Java program Car Maintenance: This assignment will assess your understanding of void and value retur...

A: Program: import java.util.Scanner;   public class Main {     //method carMaintenance     //takes mak...

Q: Show the output of the following codes:   i. #include <iostream> using namespace std;   int ma...

A: Output for first code ( i ) :

Q: You create 2 programs that have to process quite large data, about 1 million records. You test the p...

A: Given: For Process 1:               Tread = 1ms             Tprocess = 5ms             Twrite = 1ms ...

Q: Write C++ program to calculate percentage of students marks such as: First Receive Student Marks of...

A: Here, first you need to declare array for marks and one variable for number of subject i.e here "n"....

Q: A column in your data is missing a value in one row. Which command fills this missing data point wit...

A: EXPLANATION: df.fillna(method= {‘backfill’, ‘bfill’, ‘pad’, ‘ffill’, None}, default None 1) df.filln...

Q: Consider the following JavaScript code segment. 1 2 var a = 6; 3 var b = 5; %3D 4 var c 0; 6 functi...

A: Introduction to JavaScript: Java Script is a client-side scripting language. HTML(Hypertext Markup L...