PinnedAdam MoradFlask and Dynamic Routing: Creating Custom URLs for Your Web AppUsing flask has been a pleasure while building small apps with static routing in the past — on a more recent project I used dynamic…Apr 8, 2023Apr 8, 2023
Adam MoradImporting Python datetime like a pro“The datetime module supplies classes for manipulating dates and times” — Python Official DocsAug 8, 2022Aug 8, 2022
Adam MoradPython Ternary OperatorTernary operators are basically conditional expressions that use only a single line — instead of the multiline if-else convention.Jul 20, 2022Jul 20, 2022
Adam MoradWhy __name__ == “__main__” ?You probably have seen if __name__ == '__main__': in an IDE boilerplate code, or some tutorials and wondered — what is this strange code?Jul 20, 2022Jul 20, 2022