文字列のテキストを中央揃えにしようとしていますが、できません。複数の投稿をチェックして、彼らが言ったことを試しましたが、エラーは発生しませんが、テキストはまだ左に配置されています。ここにコードと中央に配置したい文字列
while True:
print ''
while True:
try:
userNum = float(raw_input('Enter the total of your bill: '))
if (userNum) > 0 and (userNum) != 0:
break
else:
print 'Oops! That was no valid number. Try again...'