I am new to Python. When I printed a line with * at the beginning and end, and an appropriate number of spaces in between, I got it correct but when I tried a different way shorter than the first way, I got * indented by 2 spaces with no reason.
print("*", end = ""), print(" " * (num), end = ""), print("*") // it works
* * //1st way sample output
print("*", " " * (num) ,"*") // 2nd way doesn't work
* * // 2nd way sample output
// the last * is indented by 2 spaces
Any clarification, Thanks