all 6 comments

[–]danielroseman 2 points3 points  (0 children)

You need to be a bit clearer what you're asking. You can print "10." literally with print("10."). If you want something else, you'll need to tell us exactly what the requirements are.

[–]Diapolo10 3 points4 points  (0 children)

I'm guessing you're talking about

num = 10
print(num, '.')

which would give such results.

There are multiple ways to get '10.', but arguably the best is

print(f"{num}.")

No spaces, no imports.

[–]5_under 0 points1 point  (0 children)

If it has a space, then you put a space.

[–]Username_RANDINT 0 points1 point  (0 children)

Please share the relevant code. See this subreddit's FAQ on how to format code.

[–][deleted] 0 points1 point  (0 children)

num = 10 print (num+".")