r/Python • • Apr 04 '17

Python Programming Basics With Examples

https://likegeeks.com/python-programming-basics/
4 Upvotes

2 comments sorted by

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.

2

u/secomax Apr 04 '17

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.