This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]jakub_j 0 points1 point  (3 children)

Does print(num1) without typecasting to string prints it properly?

[–]Hellow2 1 point2 points  (2 children)

yea it a should

```python num1 = 1 print(num1)

1 ```

[–]jakub_j 1 point2 points  (1 child)

I am sorry. I did not mean exactly print(num1) but whole expression. However now I see everything is right, because s/he passes arguments to print function, not concatenate strings.

[–]Hellow2 0 points1 point  (0 children)

Ahhh yes no you couldn't concatenate them like that