Simple and basic question on programming languages. Currently focusing on python and R.

Joined October 2021
What will be the output of following code in python? #python #100DaysOfCode
1
3
254
Replying to @driscollis
Using `or` instead of if/else for defining defaults
5
3
51
5,286
I wonder how they were able to do anything
1
2
132
What will be the output of following code in python?
1
1
154
In python it is possible to index a string. What do you think happens when we run example 2?
1
2
268
Did you know you can include install options in your `requirements.txt` file while doing `pip install -r requirements.txt`?
5
616
The latest trending linter is Ruff. It is an extremely fast linter written in Rust. Ruff can b used to replace Flake8 (plus dozens of plugins), isort, pydocstyle, yesqa, eradicate, pyupgrade & autoflake, all while executing tens or hundreds of times faster thn any individual tool
81
It looks like the first casuality of chatGPT is going to be stackoverflow. Developers are already ditching it. The following image shows the total visits go down from 279 in Nov to 247 million in Dec and I can only imagine this number going down.
160
What would be the output of the two print statements in the following code in python? #python #programming #chatGPT
1
1
174