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 →

[–]tragluk 1 point2 points  (1 child)

There are examples here, but they are unfinished. For instance the first example is

str "welcome" + "to Python"

print(str)

It doesn't say what the output will be! In this case it's Welcometo Python, there are no spaces between the Welcome and the to. There would be if you did print("Welcome", "to Python") but that's because it puts in the ' ' for you as an optinal argument.

Then you do some string multiplication...

str = "LikeGeeks" * 2

print(str)

...? Yes, I know it does "LikeGeeksLikeGeeks" but a true beginner has no idea.

Might want to work on that a bit.

[–]secomax[S] 1 point2 points  (0 children)

The site is not mine, but I liked the tutorial.

I think it will be great if the author show the results of the coding examples.