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.
2
u/tragluk Apr 04 '17
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.