<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
<div>I am learning Python 3 and programming and am very new so please bear with me…</div><div><br></div><div>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 , &nbsp;in the pint statement i.e. print(letterGroup[4],) and print(letterGroup[4]\n) and even print(letterGroup[4],/n)……..</div><div><br></div><div>Can anyone help and explain please….Thank you</div><div><br></div><div>for line in file:</div><div>&nbsp; &nbsp; m = re.search(regexp, line)</div><div>&nbsp; &nbsp; if m:</div><div>&nbsp; &nbsp; &nbsp; &nbsp; letterGroup=m.group(0)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; print(letterGroup[4])</div><div><br></div><div><br></div>                                               </div></body>
</html>