Hey there! Sign in to join this conversationNew here? Join for free
x Turn on thread page Beta

Programming/Computing Help please watch

Announcements
    • Thread Starter
    Offline

    0
    ReputationRep:
    How can I turn an input into a list (in python) and then the words in the sentence are displayed as there position in the list

    FOR EXAMPLE:

    User inputs a sentence. "Hello my name is bob and I like football".
    This is then put into a list.
    List("Hello my name is bob and I like football")
    The list is then reprinted as [0,1,2,3,4,5,6,7,8,9,10]. Depending on the amount of words in the list.

    Can someone please help me.
 
 
 
Poll
Do you agree with the proposed ban on plastic straws and cotton buds?
Useful resources

Study tools

Rosette

Essay expert

Learn to write like a pro with our ultimate essay guide.

Thinking about uni already?

Thinking about uni already?

See where you can apply with our uni match tool

Student chat

Ask a question

Chat to other GCSE students and get your study questions answered.

Creating

Make study resources

Create all the resources you need to get the grades.

Planner

Create your own Study Plan

Organise all your homework and exams so you never miss another deadline.

Resources by subject

From flashcards to mind maps; there's everything you need for all of your GCSE subjects.

Papers

Find past papers

100s of GCSE past papers for all your subjects at your fingertips.

Help out other students

Can you help? Study help unanswered threads

Groups associated with this forum:

View associated groups

The Student Room, Get Revising and Marked by Teachers are trading names of The Student Room Group Ltd.

Register Number: 04666380 (England and Wales), VAT No. 806 8067 22 Registered Office: International House, Queens Road, Brighton, BN1 3XE

Write a reply...
Reply
Hide
Reputation gems: You get these gems as you gain rep from other members for making good contributions and giving helpful advice.