what is output? my_string = 'what is your name?' print(my_string.split('?'))

Answers

Answer 1

The output of the given code snippet will be: ['what is your name', '']

What is output?

Student question: what is output? my_string = 'what is your name?' print(my_string.split('?'))

In the given code snippet, the given string 'what is your name?' is being split at the delimiter '?' using the 'split' method.

The 'split' method is used to split a given string into a list of strings based on the given separator. The syntax of the 'split' method is: string.split(separator, maxsplit)Where, 'separator' is the delimiter on which the string will be split, and 'maxsplit' is the maximum number of splits that can be made.

The given string 'what is your name?' has '?' as its delimiter. So, when the 'split' method is called on the string using the delimiter '?' as the argument, it will split the string into a list of two strings: 'what is your name' and '' (empty string).

Therefore, the output of the given code snippet will be: ['what is your name', '']

Learn more about programming: https://brainly.com/question/26134656

#SPJ11


Related Questions

13) When developing film, how do you dispose of fixer as opposed to developer?
A) Fixer is poured down the drain while developer can be reused.
B) Developer is poured down the drain while fixer can be reused.
C) Both developer and fixer can be poured down the drain.
D) I don't know.

Answers

Answer:

B) Developer is poured down the drain while fixer can be reduced

Explanation:

The effluents produced during photographic processing includes, wash water, bleach, fixer, and developer

The developer is an alkaline solution, with a pH of approximately 10.0, while the pH of the fixer is about 4.3, it is therefore, acidic

The rate of discharge of the developer to the fixer is 2 to 1, and the exhausted developer, fixer and process effluents combined are neutral and can be handle by the the treatment works and the drain pipes

Fixer which remain clear can be reused for more than a day, while the spent basic Developer and the acidic Spent Stop Bath can be combined to form a neutral solution, having a pH of approximately 7, which make them less hazardous to be disposed off down the sink into the drain

Therefore, developer is poured down the drain while fixer can be reused

Imagine that you are a team leader at a mid-sized business. You would like to start using digital media to help
organize meetings and assist in communication. You know there are potential difficulties concerning the use
of digital media, but you believe that you can eliminate them or, at the very least, deal with them. Describe one
of these potential pitfalls, and explain what you would do to prevent it and deal with it if it arose.

Answers

I put this answer exactly so you might wan na change it a bit since they take plagarism seriously. Again, sorry about the spaces.

There is a possibility of getting malware (a computer virus) on your digital device. To prevent this, try avoiding suspicious websites and may be think about getting a V P N.

Users can launch their applications rapidly by developing in the cloud. Data security because of the networked backups, hardware failures do not cause data loss.

What exactly is cloud computing in simple terms?

Cloud computing can be defined as the provision of computer services over the Internet ("the cloud"), including servers, storage, databases, networking, software, analytics, and intelligence, in order to give scale economies, faster innovation, and flexible resources.

Instead of purchasing and installing the components on their own computers, organizations and people who use cloud computing rent or lease computing resources and software from third parties across a network, such as the Internet.

Therefore, Users can launch their applications rapidly by developing in the cloud. Data security because of the networked backups, hardware failures do not cause data loss.

To know more about loud computing visit:-

brainly.com/question/29737287

#SPJ2

Students have the freedom to design the brochure in a way that helps the general public understand the specific issue. The easiest thing to do is create a new document in Microsoft Word and select a tri-fold brochure. Please remember that a brochure is twosided. The point of the brochures is to highlight an economic issue with solid data and economic reasoning to raise public awareness. Students must clearly favor or oppose the policy in the brochure in a compelling way with strong economic reasoning. A grading rubric has been loaded in Canvas. Policy Issue #1 - President Joe Biden has proposed to increase the federal minimum wage to $15.00 per hour to help underpaid workers. Due Sunday by 11:59pm.

Answers

In this task, students have the freedom to design a brochure to help the general public understand a specific economic issue. The brochure should be two-sided and created using Microsoft Word's tri-fold brochure template. The purpose of the brochure is to raise public awareness about the economic issue by presenting solid data and economic reasoning.

The specific policy issue for this task is President Joe Biden's proposal to increase the federal minimum wage to $15.00 per hour in order to assist underpaid workers. To create a compelling brochure, students must clearly favor or oppose this policy using strong economic reasoning.

Remember to consult the grading rubric provided in Canvas to ensure that you meet all the requirements and criteria for this task.I hope this explanation helps you create a successful and informative brochure. If you have any more questions or need further assistance, feel free to ask!

TO know more about that freedom visit:

https://brainly.com/question/7723076

#SPJ11

1. Add two numbers and store the answer in a variable named SUM. Ask the user to input two values. Read in the first number and store it in a variable named num1, read in the second number and store it in a variable named num2. Check to see if each of the numbers you read are a zero, if they are ask the user to in put a different number.

2. Add and print the class average. Store the class average in a variable named Average. Create a counter to count the number of grades that were entered and store it in the variable counter. Create a loop to enter each grade. Terminate the loop once it reaches 50 iterations.

3. Check to see if the number the user inputs is positive or negative. Ask the user to input a number. Read and store the number in a variable named NUM. Check to see if the number is positive, negative, or zero. Output a phrase to the user telling them if the number is positive, negative, or zero.

Answers

The answers to the programs that

Accepts two numbers from the user and sums them up if neither are zeroAccepts 50 grades and calculates their averageGets a number from the user and prints the sign of the number (that is, if the number is positive, negative or zero)

were written in Python 3.8, and can be found in the attached images

The first program uses a function get_input() to get the input for each number before they are added up. The function uses a while loop to make sure that the user does not enter zero.

Whenever the user enters zero, a message is displayed that says

"number should not be zero, Try again"

then the while loop repeats.

The next program uses a while loop and a variable named counter to keep track of the number of grades entered by the user.

Inside the loop, each time the user enters a number, it is added up to the previous sum, and the counter is incremented by one to keep track of the number of grades entered so far.

Once the loop completes, the average is then calculated from the accumulated sum. the average is computed by dividing that sum by the counter.

The third and final program uses an if statement to check the sign of the number entered by the user. Then it prints out an appropriate message.

The if statement tests for the conditions as follows

If NUM > 0, then NUM entered was positive, and print "The number you entered is positive"else If NUM < 0, then NUM entered was negative, and print "The number you entered is negative"else NUM = 0, then NUM entered was zero, and print "You entered zero"

Another Python program about sums can be found here: https://brainly.com/question/6224293

1. Add two numbers and store the answer in a variable named SUM. Ask the user to input two values. Read
1. Add two numbers and store the answer in a variable named SUM. Ask the user to input two values. Read
1. Add two numbers and store the answer in a variable named SUM. Ask the user to input two values. Read

what is a spreadsheet​

Answers

a spreadsheet function that indicates the average of a group of numbers in a range.

Write an LMC program as follows instructions:
A) User to input a number (n)
B) Already store a number 113
C) Output number 113 in n times such as n=2, show 113
113.
D) add a comment with a details exp

Answers

The LMC program takes an input number (n) from the user, stores the number 113 in memory, and then outputs the number 113 n times.

The LMC program can be written as follows:

sql

Copy code

INP

STA 113

INP

LDA 113

OUT

SUB ONE

BRP LOOP

HLT

ONE DAT 1

Explanation:

A) The "INP" instruction is used to take input from the user and store it in the accumulator.

B) The "STA" instruction is used to store the number 113 in memory location 113.

C) The "INP" instruction is used to take input from the user again.

D) The "LDA" instruction loads the value from memory location 113 into the accumulator.

E) The "OUT" instruction outputs the value in the accumulator.

F) The "SUB" instruction subtracts 1 from the value in the accumulator.

G) The "BRP" instruction branches back to the "LOOP" label if the result of the subtraction is positive or zero.

H) The "HLT" instruction halts the program.

I) The "ONE" instruction defines a data value of 1.

The LMC program takes an input number (n) from the user, stores the number 113 in memory, and then outputs the number 113 n times.

To know more about LMC program visit :

https://brainly.com/question/14532071

#SPJ11

5.24 lab: longest string (eo) write a method, findlongest(), that takes two strings as parameters and returns the longest string. if the strings are the same length then return the second string. ex. if the input is: almond pistachio the method findlongest() returns and then the program outputs: pistachio your program must define the following method: public string findlongest(string str1, string str2)

Answers

To solve this problem, you can define the method findlongest() that takes two strings as parameters (str1 and str2). Here's a step-by-step explanation:

1. Define the method findlongest() with the following signature:
  public string findlongest(string str1, string str2)

2. Inside the method, compare the lengths of str1 and str2 using the Length property.
  - If str1's length is greater than str2's length, return str1.
  - If str2's length is greater than str1's length, return str2.

3. If both strings have the same length, return the second string (str2).

Here's a code example for the findlongest() method:

public string findlongest(string str1, string str2)
{
   if (str1.Length > str2.Length)
   {
       return str1;
   }
   else if (str2.Length > str1.Length)
   {
       return str2;
   }
   else
   {
       return str2;
   }
}

To use the method and output the longest string, you can call the findlongest() method with the two strings as arguments. For example:

string longestString = findlongest("almond", "pistachio");
Console.WriteLine(longestString);

This will output "pistachio" as the longest string.

To know more about strings visit;

https://brainly.com/question/32338782

#SPJ11

what is the usage of sustainable energy?​

Answers

its the practice of using energy in a way that "meets the needs of the present without compromising the ability of future generations to meet their own need

a collection of logically related instructions is called _______​

Answers

Answer:

Data Base from what I know

Explanation:

Northern Trail Outfitters uses a custom object Invoice to collect customer payment information from an external billing system. The Billing System field needs to be filled in on every Invoice record. How should an administrator ensure this requirement

Answers

An administrator should ensure this requirement by creating a process builder to set the field.

What is a billing system?

A billing system is a complex software that enables service providers' order to cash process (O2C) and sends invoices, tracks, and processes payments for different consumers.

It is the process by which a business bills and invoices customers. Billing systems often include payment software that automates the process of collecting payments, sending out recurring invoices, expense tracking, and invoice tracking.

Learn more about billing system here,

https://brainly.com/question/14315763

#SPJ1

difference between tablet and smart phone

Answers

Answer:

What is the difference between tablets and smartphones? The main difference is the size of the screen. Smartphones usually have screen sizes between 4″/10cm and 7″/17cm, a tablet is anything over this. When it comes to processing power and available apps—they usually share the same capabilities.

Explanation:

Tablets are overwhelmingly used to play games and access entertainment (67 per cent), while smartphones are divided between games, social networking, and utilities (to name a few). Basically, tablets are seen as an entertainment platform, while smartphones are considered mostly a communications device.

what aspects of your life are most influenced by media and technology​

Answers

Answer:

Everyday life

Explanation:

Television

office work (computers )

Music

video games

ware house work uses technology

work from home jobs use technology

cellular towers

What hand-held gaming system did Nintendo release in 1989?
Game Boy
Game Cube
Nintendo DS
Nintendo Wii

Answers

Answer:

Game Boy!

Explanation:

Game Boy was a very popular gaming system used by children around the world (especially US and Japan). It marked the childhoods of many.

:)

Answer:

Game Boy

Explanation:

The first handheld game console with interchangeable cartridges is the Milton Bradley Microvariation 1979. Nintendo is credited with popularizing the handheld console concept with the release of the Game Boy in 1989 and continues to dominate the handheld console market.

I personally wasn't alive during the release of the Game Boy, but I have many Game Boy systems today. :)

How to call a function in react component on load.

Answers

The use effect runs by default after every render of the component. When placing use effect in our component we tell React that we want to run the callback as an effect. React will run the effect after rendering and after performing the DOM update

Falling If the user doesn't do anything, the player sprite should fall. Do This • Find the code comment // FALLING . • Use the counter pattern with the player sprite's velocityy to make the flyer fall. Test your code to make sure that it works. The sprite should fall faster as it goes down the . screen. Toolbox ♡ Workspace World Sprites 1 77 GAME SETUP Drawing Control 2 // create player, target, and obstacles Math Variables 3 var rock = createSprite(109 100) var sprite = createSpritex, 4 rock.scale = 0.5; sprite.setAnimation (label) 5 var player createSprite(200, 100) 1: player.setAnimation "fly_bot"); sprite.x 6​

Answers

sdcyecreat nobody cares because nobody asked nobody likes you I’m just kidding I love you so much have a great day

On the motherboard, the connection points for chips are referred to as ________.
a. slots b. sockets c. ports d. lines. b. sockets.

Answers

The connection places for chips on the motherboard are known as sockets.

What is motherboard?
Connectivity between a computer's hardware parts, such as the CPU, RAM, hard drive, and visual card, is provided by the motherboard. There are numerous motherboard varieties that are made to fit various sizes and types of computers. There are different types of motherboards, and because of this, not every CPU and memory type is compatible with every motherboard. However, regardless of type or brand, hard drives are often universal and compatible with most motherboards. The majority of the components and computer peripherals attach to a motherboard inside the computer chassis. The motherboard, which is the largest circuit board in tower computers, is located on either the left or right of the tower.

To learn more about motherboard
https://brainly.com/question/12795887
#SPJ13

Write a program in the if statement that sets the variable hours to 10 when the flag variable minimum is set.

Answers

Answer:

I am using normally using conditions it will suit for all programming language

Explanation:

if(minimum){

hours=10

}

When should students in a study session use flash cards to quiz one another ?

Answers

Answer:

while drilling

Explanation:

5. traffic-control devices communicate meaning using: * 1 point a. color b. shape c. wording d. all of the above

Answers

The traffic-control devices communicate meaning using color, shape, and wording. So, the correct option is d. all of the above.

Traffic control devices are also known as traffic control signs or traffic signs. These are signs that are utilized to assist drivers in navigating the roads safely. They provide critical information such as directional instructions, speed limits, cautions, and other rules that drivers must follow. Traffic signs are employed for a variety of purposes, including preventing collisions and enforcing regulations. Traffic-control devices communicate meaning using color, shape, and wording.

The use of traffic control devices is critical for maintaining road safety. It aids in reducing the number of accidents on the road. Drivers must obey traffic signs in order to ensure the safety of all road users. Traffic signs and signals are important components of the road system. They play an important role in keeping pedestrians and vehicles safe. Road users' behavior is influenced by traffic control devices, which help to minimize the likelihood of accidents.

The importance of road signs cannot be overstated. They are essential for maintaining road safety. They assist drivers in navigating the roads safely. Road signs inform drivers of the rules and regulations they must adhere to, such as speed limits, no parking areas, and restricted areas. They also offer critical information such as location, distance, and directions. In a nutshell, traffic control devices and road signs are critical for ensuring road safety.

You can learn more about traffic-control devices at: brainly.com/question/30712353

#SPJ11

When both source and destination files need constant updating, use _____________.
A.) cropping
B.) embedding
C.) linking
D.) pasting

Answers

When both source and destination files need constant updating, use embedding or linking.

What is the destination file?

The file is known to be one that is linked or said to be a form of embedded object  that is often inserted into, or that data is saved to.

Note that the source file is one that has the information that is used to create the object and as such, when there is issues, one can use linking.

Learn more about destination files  from

https://brainly.com/question/17019048

A search expression entered in one search engine will yield the same results when entered in a different search engine.
A. True
B. False

Answers

Answer:

false

Explanation:

A user who bypasses the documentation to get a new hardware or software package operational as rapidly as possible is a victim of ____.

Answers

A user who bypasses the documentation to get a new hardware or software package operational as rapidly as possible is a victim of quick start behavior.

What is Quick Start Behavior Guide?

The Quick Start Behavior guide is known to be a fast introduction to the use of Class Charts behavior management software.

A user who bypasses the documentation to get a new hardware or software package operational as rapidly as possible is a victim of quick start behavior as he or she is in haste and thus did a bypass.

Learn more about documentation from

https://brainly.com/question/25534066

1 pound is equivalent to how many grams?
A.463.59 grams
B.10 grams
C.59 grams
D.5 grams​

Answers

A, because it makes sense and i asked siri

How does a wireless network key work with an encrypted wireless network?

Answers

A wireless network key work with an encrypted wireless network, providing security and access control.

When a device attempts to connect to an encrypted network, it needs to provide the correct network key to gain access. This key ensures that only authorized users can connect to the network and helps protect the transmitted data from being intercepted or tampered with by unauthorized parties. The wireless network key works in conjunction with encryption algorithms, such as Wired Equivalent Privacy (WEP), Wi-Fi Protected Access (WPA), or WPA2.

These algorithms use the network key to generate unique encryption keys for each data packet transmitted over the network. This process, known as key management, ensures that even if an attacker manages to intercept the data packets, they won't be able to decrypt the information without the correct network key. When a device connects to an encrypted network, a process called authentication occurs. The device provides the network key to the access point, which then verifies its validity.


In summary, a wireless network key is an essential component of an encrypted wireless network, providing both access control and data security. It ensures that only authorized users can connect to the network and that the transmitted data remains protected from unauthorized parties. The network key works in conjunction with encryption algorithms to encrypt and decrypt data packets, maintaining a secure communication channel between connected devices.

know more about wireless networks here:

https://brainly.com/question/31472325

#SPJ11

Ask the user to input a country name. Display the output the message "I would love to go to [country]"

Answers

Answer:

import java.util.Scanner;

public class Country{

public static void main (String[] args){

Scanner input = new Scanner(System.in);

System.out.print("Input a country name: ");

String country = input.nextLine();

System.out.println("I would love to go to " + country);

}

}

Explanation:

We think of distance as moving from one place to another. Can
you imagine how big the universe is compared to just the Earth or
the nearest planet to the Earth. Describe this in your report.

Answers

The universe is incredibly vast and incomprehensible in size compared to Earth or any other planet in our solar system.

The universe is incredibly vast and incomprehensible in size compared to Earth or any other planet in our solar system. The observable universe is estimated to have a diameter of approximately 93 billion light-years, and it contains billions of galaxies, each with billions of stars and planets.

To put this into perspective, the nearest star to Earth, Proxima Centauri, is approximately 4.24 light-years away. This means that even if we could travel at the speed of light, it would take over four years to reach the nearest star.

Furthermore, our Milky Way galaxy is estimated to be around 100,000 light-years in diameter, with over 100 billion stars. Our own solar system, in comparison, is just a small part of the Milky Way, located on one of its outer arms.

In conclusion, the size of the universe is truly mind-boggling when compared to the size of our planet or even our solar system. It is a vast and mysterious place that we are still discovering, and it is likely that there is much more still to be explored.

To learn more about solar system visit:

https://brainly.com/question/18365761

#SPJ4

Network layer protocols specify the _______ structure and processing used to carry data between hosts.

Answers

Network layer protocols specify the  packet structure and processing used to carry data between hosts.

What is the Network layer protocols  about?

The header, payload, as well as the trailer of a network packet are its three component pieces. The underlying network architecture or protocol employed determines the format and size of a network packet. A network packet resembles a package in concept.

Therefore, Network layer protocols define the packet format and processing needed to transfer data from one host to another host, in contrast to the Transmission layer (OSI Layer 4), which controls the data transport between the programs operating on each end computer.

Learn more about Network layer from

https://brainly.com/question/14476736
#SPJ1

what is the purpose of the self parameter? group of answer choices to create variables with public visibility enables changes in the implementation without affecting users of a class store the data for all objects created by the same class refers to the object on which the method was invoked previous

Answers

To access class-specific variables, use the self parameter, which is a reference to the currently running instance of the class.

What is a self parameter ?

There is no way around the term "self" while working with Pythn.

Both the defining of methods and the initialization of variables use it.

Every time a method is defined, the self method is explicitly invoked.

The class instance is represented by the self. You can access the class's attributes and methods in Pythn with this keyword. It connects the given arguments and the attributes.

Pythn does not utilize the notation o refer to instance attributes, therefore we use self instead. In Pythn, there are ways that cause the instance to be passed but not automatically received.

Hence, To access class-specific variables, use the self parameter, which is a reference to the currently running instance of the class.

Learn more about self parameter click here:

https://brainly.com/question/20392727

#SPJ4

Write a program that converts a string into 'Pig Latin". To convert a word to pig latin, you remove the first letter of that word then append it to the end of the word. Then you add 'ay' to it. An example is down below:
English: I SLEPT MOST OF THE NIGHT
Pig Latin: IAY LEPTSAY OSTMAY FOAY HETAY IGHTNAY

Answers

Answer:

def pig_latin(text):

words = text.split()

pig_latin_words = []

for word in words:

first_letter = word[0]

rest_of_word = word[1:]

pig_latin_word = rest_of_word + first_letter + 'ay'

pig_latin_words.append(pig_latin_word)

return ' '.join(pig_latin_words)

pig_latin('I SLEPT MOST OF THE NIGHT') # 'Iay Leptsay Ostmay ofay hetay ightnay'

who wont me???????????????

Answers

Answer:

whatatattatata

Explanation:

what are u talking about

Answer: HUH?

Explanation: WHATS THE QUIESTION SIS?  

NO ME????

Other Questions
unified communications (uc) is an umbrella term for integrated, multi-media communications controlled by an individual user for both business and social purposes. uc integrates all of the following except? Select one: a.Social media. b.Data. c.Voice. d.Video Why do the Austrians welcome the German troops Osmoregulatory adjustment via the renin-angiotensin-aldosterone system can be triggered by _____. tenga para que se entrega , yo creo que el desconocido era _______ por eso se llev al nio_____ es para hoy ! Which of the following is the exact value of cot(pi/4) a giant tank in a shape of an inverted cone is filled with oil. the height of the tank is 1.5 metre and its radius is 1 metre. the oil is dripping at the bottom of the tank at the constant rate of 110 cm/s. 1) Find rate of change for the oil's radius when the radius is 0.5m.2)calculate the rate of change for the oil's height when the height is 120 cm. 3. A circular oil slick was formed with uniform thickness from the drip. Assuming that the thickness of the oil slick is always at 0.1 cm, find the rate of the oil's radius when the radius is 10cm What factual details do you notice about Janie in the story Their Eyes Were Watching God? (Occupation, Attitude, Description, etc) 3. Yo... tiene muchos amigos. tenis muchos amigos. tengo muchos amigos. consider the function f(x,y) =x^3- y^2 - xy +1.find all critical points of f and classify them as local maxima,local minima and saddle points let g be a directed graph. after running dfs algorithm on g, the vertex v of g ended up in a dfs tree containing only v, even though v has both incoming and outgoing edges in g. fully explain how this happened. Find the volume of the parallelepiped with adjacent edges PQ, PR, and PS.p(3,0,1), Q(-1,2,5), R(5,1,-1), S(0,4,2) Task: The company sells: resumes, cover letters, LinkedIn, bios, interview preparation, any documents related to a job application. Keeping all the content in Script 1 below, add further text to it, with the goal of promoting additional sales and maintaining client retention.SCRIPT 1Glad you like the Resume Kathy : ) Im excited to hear it helped you get some great interview opportunities this week! Im here if you need anything else or need any other services! Thanks again, and it was wonderful working with you! All the best. please answer and explain how to get it. When does direct characterization occur? Adam's Corporation target capital structure consists of 75% common stock, 15% debt, and 10% preferred stock. Its after-tax cost of debt is 7%, its cost of preferred stock is 10.2% and its cost of equity is 15.72%. What is its weighted average cost of capital Please help I don't know how to do this.! What is the value of (15)3 when evaluated? The sun will probably end up as a white dwarf. How will it be different then from what it is today the package allows access to two ddl statements that cannot be used directly within a pl/sql block: alter compile and analyze object. a. dbms ddl b. dbms job c. dbms pipe d. dbms sql the most popular approach to increase goal commitment is to: group of answer choices minimize employee involvement in planning. encourage employee participation while setting goals. ask the top management to assign goals. develop less challenging goals.