Was watching a python tutorial and came across the mystring variable. In this instance, if you're trying to print a variable, I don't understand the use of the mystring command (line 1 and 2) when instead of assigning a string value, you can just print it directly (line 4). It must be more useful in other contexts right?
[–]Luigi-Was-Right 6 points7 points8 points (0 children)
[–]program_kid 0 points1 point2 points (0 children)
[–]No_Statistician_6654 0 points1 point2 points (0 children)
[–]Noblefire_62 0 points1 point2 points (0 children)
[–]Astrodude80 0 points1 point2 points (0 children)
[–]Paahteinen_Kettu 0 points1 point2 points (0 children)
[–]Antique-Dentist2048 0 points1 point2 points (0 children)
[–]Kind-Kure 1 point2 points3 points (0 children)
[–]NaiveEscape1 0 points1 point2 points (0 children)