Computing: Simple Python

Hi this is the code I'm working on, but every time I run it, every character inputted is printed, so hello becomes 'h','e','l','l','o', even numbers! I can't seem to fix it so that it can be added to the list and printed normally, thanks!

#Printing the original list (This was given)
a = ['spam','eggs',100,1234]
a[0:2] = [1,12]
print("This is the original list:", a)
#Prompting user to input data
b = input('Please add your first item to the list: ')
c = input('Please add your second item: ')
a[4:4] = b
a[5:5] = c
#Printing new list
print(a)

  1. 👍 0
  2. 👎 0
  3. 👁 58
asked by Python
  1. ---- This is fixed now thanks ----

    1. 👍 0
    2. 👎 0
    posted by Fixed

Respond to this Question

First Name

Your Response

Similar Questions

  1. math

    inventory puposes, a manufacturing company assigns a 3 charcter code to each differnt item produced. the first character of the code must be aleter from the 26 letter english alphabet. the second and third characters must each be

    asked by sb on March 26, 2012
  2. L A/The Giver

    With the chant, Jonas knew the community was accepting him and his new role, giving him life, the way they had given it to the newchild Caleb. His heart swelled with gratitude and pride. But at the same time, he was filed with

    asked by Marylyn on May 19, 2015
  3. Programming

    Here is the question that I need help to write the code for the following program in Visual Basic 2010. I am trying to write the code but it has a run time error. If your could helps me to write the code it would be greatly

    asked by Solomon on May 18, 2011
  4. Morse Code Please Answer!

    My book doesn't explain how, for example, if D was --. and O was .-. than how would they tell the end of the D from the beginning of the O? Did they pause between letters? But then how would they know the difference between a "new

    asked by Jenna on February 22, 2007
  5. The Giver

    Read the paragraph from the Novel The Giver. With the chant, Jonas Knew, the community was accepting him and his new role, giving him life, the way they had given it to the newchild Caleb. His heart swelled with gratitude and

    asked by Amber on May 22, 2015
  6. English

    I'm writing an essay on the short story, The Bouquet. It's a essay on the character of Mary Myrover. Tell me what you think... =D Mary Myrover is Charles W. Chesnutt's major character in the short story, "The Bouquet". She is a

    asked by Matthew on November 2, 2010
  7. English

    I'm writing an essay on the short story, The Bouquet. It's a essay on the character of Mary Myrover. Tell me what you think... =D Mary Myrover is Charles W. Chesnutt's major character in the short story, "The Bouquet". She is a

    asked by Matthew on November 2, 2010
  8. Medical Billing

    Hi. I am working on my Final Project for my medical billing class. I am filling out a CMS-1500 form. The teacher has instructed us to code ONLY the diagnosis code CATEGORIES, NOT the ICD-9 code. I am confused about what the code

    asked by Myself on December 18, 2010
  9. english

    Most of the time, the ____ struggles against the main character in a story. A) protagonist B) antagonist C) flat character D) round character

    asked by chris on September 18, 2015
  10. History

    You do not need to gain approval for your role. Choose the one you want and start working on the assignment Write a 700- to 1,050-word paper, written from the perspective of your chosen role, that addresses how each of the

    asked by Chantell on October 30, 2010

More Similar Questions