Skip to main content
0 online
C
chuckthecloneOG 2002

thought about it somemore and this is what i got. by the way i do know how to use arrays. however i don't know how to manipulate the strings so i came up with this on my own.

word = house

thats the word you are suppose to find. then i find the length of word (this case it would be 5). then i would put it into a while loop.

a = 0
while a <= 4:
list.append(word(a))
a = a + 1

now to my understanding this loop would continue 5 times. the first time it would assign h to the list. the 2nd time it would assign o. and so on and so forth. is that anywhere near being correct?

deanh77 deanh77Founder

ok, so a string is treated just like a list in python. just found out about that.

some corrections:

word = 'house'
or
word = "house"

you access a character of a string as word[a] where a is an integer.

Welcome Back to eZabel

It's been a while. Here's what's new.

eZabel Lore

A complete history of our community — stats, Hall of Fame, legendary threads, and more.

View the Lore →

Everything Preserved

All 225,969 pieces of content from 2000–2014 are here — forums, messages, journals, photos, polls, and events.

💎

Gems

Spot something you love — a legendary comment, a classic thread, a great photo? Log in and click the diamond icon to mark it as a Gem. Add a note about why it's special. The best stuff surfaces on the Gems page.