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

  • SEARCH
  • Home
  • 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 8391441
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T19:15:44+00:00 2026-06-09T19:15:44+00:00

Right now, here is my code: name = raw_input(Please enter your name: ) nameList

  • 0

Right now, here is my code:

name = raw_input("Please enter your name: ")
nameList = list(name)
del nameList[1]
newName = str(nameList)
print"Your new name is: " + str(newName) + "."

When I use this code, the problem is that the last line prints the newName like a list, even though I have converted it to a string.

Your new name is: ['j', 'k', 'e'].

I want this new name to be displayed like normal text. What am I doing wrong?

Thanks.

  • 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-06-09T19:15:46+00:00Added an answer on June 9, 2026 at 7:15 pm

    I think you want to concatenate the elements of the list using the join string method:

    >>> new_name = ['j', 'k', 'e']
    >>> print ''.join(new_name)
    jke
    

    Alternatively, just don’t convert the string to a list at all and use string operations to achieve what you want:

    >>> name = 'jake'
    >>> new_name = name[:1] + name[2:]
    >>> print new_name
    jke
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here's the code I have in my .htaccess file right now: RewriteEngine on RewriteCond
Got stuck here: http://jsfiddle.net/UFkg8/ Right now the animation is top-down. What do I need
Here's how it looks like right now: my screenshot Is there a way for
Here's my question. Right now I have a Linux server application (written using C++
Here is the thing. Right now I have this e-commerce web site where people
I'm learning this right now so the questions might be a little juvenile. Here's
Here is my test page (dont mind the layout right now) https://www.bcidaho.com/test_kalyani/employer-plans-test.asp i found
Just getting into SQL stored queries right now... anyway, here's my database schema (simplified
I have a problem here. Right now I'm doing my Web Based Application, my
Ok, here's a query that I am running right now on a table that

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.