alphanumeric list

Laurent Claessens moky.math at gmail.com
Wed Mar 16 09:13:03 EDT 2011


> string = "EE472B"
> t = []
> for x in string[:]:
>          print t.append("A")   #i don't want to append A, the final
> result is EAEA4A7A2ABA

As it, it prints "None" 6 times. Then t is ['A','A','A','A','A']

What you have to do is to read about basic python. Search for python 
tutorial on the net.

Then try the following exercices :

Exercises

1
print the first 1000 intergers

2
print the sine of 1 ... 1000

3
print the intergers x between 1 and 1000 such that cos(x) is between 0 
and 0.5


Have a good afternoon
Laurent



More information about the Python-list mailing list