help with strings and slices

This is the place for queries that don't fit in any of the other categories.

help with strings and slices

Postby swagoverlord » Thu Jun 05, 2014 3:33 pm

need help with this

Scrambled Alphabet:
1. Line up the letters of the keyword together with the alphabet:
 WORLDCUPFEVERABCDEFGHIJKLMNOPQRSTUVWXYZ
2. Pick out all the letters, one at a time, and if a letter occurs a second time, it is
removed.
 WORLDCUPFEVABGHIJKMNQSTXYZ
3. The message is scrambled by using the following steps
 The spaces are replaced by the letters “QN”
 All letters are capitalized
 The message now becomes:
“THEQNSEMIFINAL…….”
 Now substitute using the following rule. Take the right mate of the letter in the
scrambled alphabet and replace the letter found in the message:
“XIVSQTVNJEJQBD….”



i have to use strings and slices. for loops as well. they want me to do this as best as i can without built in functions.
Last edited by Yoriz on Thu Jun 05, 2014 3:53 pm, edited 1 time in total.
Reason: First post lock.
swagoverlord
 
Posts: 1
Joined: Thu Jun 05, 2014 3:31 pm

Re: help with strings and slices

Postby Yoriz » Thu Jun 05, 2014 3:56 pm

Hi welcome to the forum, please read the new users read this link in my signature.
New Users, Read This
Join the #python-forum IRC channel on irc.freenode.net!
Image
User avatar
Yoriz
 
Posts: 1164
Joined: Fri Feb 08, 2013 1:35 am
Location: UK


Return to General Coding Help

Who is online

Users browsing this forum: Bing [Bot], Majestic-12 [Bot] and 2 guests