I am learning Python 3 and programming and am very new so please bear with me…
I am writing a program to pull out specific characters in a sequence and then
print then out. So far so good however when the characters are printed out they
pint on separate lines as opposed to what I want, all on the same line. I have
tried \n and just , in the pint statement i.e. print(letterGroup[4],) and
print(letterGroup[4]\n) and even print(letterGroup[4],/n)……..
Can anyone help and explain please….Thank you
for line in file: m = re.search(regexp, line) if m:
letterGroup=m.group(0) print(letterGroup[4])
_______________________________________________
Tutor maillist - [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor