Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5847105
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T12:40:17+00:00 2026-05-22T12:40:17+00:00

sentence = ‘every good boy does fine’ This exercise asks to ‘Store each word

  • 0

sentence = ‘every good boy does fine’

This exercise asks to ‘Store each word in a separate variable, then print out the sentence on one line using print.’ After pondering for two hours, here’s the best that I could come up with–

2 a = 'every'
3 b = 'good'
4 c = 'boy'
5 d = 'does'
6 e = 'fine'
7 
8 together = a + b + c + d + e
9 print(together)

Is there an easier way to do this? Like

sentence = 'every good boy does fine'.split()

…then every item on that list is placed in its own variable; then from there, add all the variables together to piece back any sentence in a prescribed way(example–bcdae, or ecabd, etc.).

thanks for helping this noob!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T12:40:17+00:00Added an answer on May 22, 2026 at 12:40 pm

    Lists and other sequences can be unpacked like so:

    a,b,c,d,e = 'every good boy does fine'.split()
    

    If you add a * before the last variable (e.g. *e) then remaining elements that don’t get unpacked can be accessed in the last variable as a list.

    You could then print however you want:

    >>> print(a,b,c,d,e)
    every good boy does fine
    >>> print(b,c,d,a,e)
    good boy does every fine
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In this sentence: myCommand.ExecuteReader(CommandBehavior.CloseConnection) does it close connection in case of exception?
Does anyone know of a Java library that handles finding sentence boundaries? I'm thinking
I have a C# collection of strings. Each string is a sentence that can
I'm trying to output a sentence containing 4 variables, with their values emboldened using
Given an array of characters which forms a sentence of words, give an efficient
I need an algorithm to determine if a sentence, paragraph or article is negative
I've seen quite a few developer job postings recently that include a sentence that
First, let me use one sentence to let out some frustration: My god, developing
If I have an f# function that takes a string containing a sentence, what
More specifically, I'm trying to check if given string (a sentence) is in Turkish.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.