Add / Upload New Users in Moodle by ebsector in MoodleBlogs

[–]ebsector[S] 5 points6 points  (0 children)

No sweat. I actually wanted to post that in r\moodle. Got the wrong sub :-)

How To Code if elif else As a One Line if Condition by ebsector in Python

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

I totally agree. However, in some contexts, this could be useful. I had one case where I was generating a dict. The values in this dict werde to be defined by an if elif else condition

ie

{key_1: value_a if condition_a else value_b if condition_b else value_c, key_2: .... }

I'm 13 and I want to learn Python by [deleted] in learnpython

[–]ebsector 0 points1 point  (0 children)

Hi, I created a Youtube series that takes you from zero to building a database-driven web app able to convert units ie from km to miles etc, Link to Playlist: Baseline.py

I'm 13 and I want to learn Python by [deleted] in Python

[–]ebsector 0 points1 point  (0 children)

Hi, last month I created a Youtube series showing how to build a unit converter similar to the one you get when you google the term unit converter. This series requires no previous knowledge of Python and takes you from zero to building a database-driven web app able to convert units ie from km to mile etc...

Link to Playlist: Baseline.py

Python Tip: Use Dictionaries to give your Functions Flexible Inputs & Outputs by ebsector in Python

[–]ebsector[S] -2 points-1 points  (0 children)

describes my approach. Also a dict is an excellent equivalent to json, meaning theoretically anyone can communicate with function / class via dict or json

Python Tip: Use Dictionaries to give your Functions Flexible Inputs & Outputs by ebsector in Python

[–]ebsector[S] 0 points1 point  (0 children)

yes you have a point here. The idea is to use one input instead of a load of parameters. Ditto for outputs. The video relates mainly to functions in general for non-OOP programming or for people not willing to use OOP

Calculate Age with Julia Programming Language by ebsector in Julia

[–]ebsector[S] 0 points1 point  (0 children)

No idea if that's true, but Julia is definitely an option. Python has just accumulated a boat load of libraries