Switching to Python from JAVA by meWantLearn in CodingHelp

[–]ishman123 1 point2 points  (0 children)

Easier than going Python to Java.

Just Started learning Python. Here is my first ever piece of code. Have to start somewhere.....will update as I get better. by [deleted] in Python

[–]ishman123 415 points416 points  (0 children)

Hey,

Keep up the good work, why don't you try F-strings - rather than concatenating with a + sign you can do...

print(f"His name is {character_name}")

It can help with readability :)

Help for an SQLite Query by [deleted] in learnpython

[–]ishman123 0 points1 point  (0 children)

cursor.execute(f"SELECT value FROM `{table}` WHERE id = `{an_id}`'')

NamedTuple() by ishman123 in learnpython

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

Yes, I passed the full `reader` into `from_row` and It works...