DEV Community

loading...

Discussion on: Day 32 Of 100DaysOfcode: Learned More About Database on Python

Collapse
otumianempire profile image
Otu Michael
if(len(fname)<1): fname = 'mbox-short.txt'
Enter fullscreen mode Exit fullscreen mode

You can check if the fname as in,

if not fname: fname = 'mbox-short.txt'
Enter fullscreen mode Exit fullscreen mode
Forem Open with the Forem app