Hey there! Sign in to join this conversationNew here? Join for free
    • Thread Starter
    Offline

    5
    ReputationRep:
    I need some guidance with edexel A453 on Task 2, i have done most features of the program that the Task states. But i am really Stuck on finding the unique words in the sentence, the only way i have accomplished this is by using seperate lines of code for each word, but i don't get any marks for that, which is why i need some gudiance on waht to do as i am really stuck.

    'To Be Or Not To Be' = THIS IS THE WHOLE SENTENCE
    ["To","Be","Or","Not"] = THIS IS THE LIST CONTAINING THE RECURRING WORDS IN THE WHOLE SENTENCE

    ["0","1","2","3","0","1"] = LIST OF POSITIONS THAT HAVE BEEN FOUND IN THE SENTENCE THIS WILL BE PRINTED OUT TO THE USER.

    here is my code:
    Name:  Untitled.png
Views: 57
Size:  15.1 KB·
 
 
 
  • See more of what you like on The Student Room

    You can personalise what you see on TSR. Tell us a little about yourself to get started.

  • Poll
    Brexit voters: Do you stand by your vote?
  • See more of what you like on The Student Room

    You can personalise what you see on TSR. Tell us a little about yourself to get started.

  • 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.