Are you trying to learn #python but too busy to keep up with blog posts and tutorials?
Sign up at saral.club and learn python by solving a question a day
What will be the output of following code in #python?
```python
a = {1, 2, 3}
b = {1, 2, 3}
print(*(a + b))
```
33%{2, 4, 6}
33%[2, 4, 6]
33%Error
0%{1, 2, 3}
3 votes • Final resultsYou can check the answer here: saral.club/qna?id=85f05fb8-c…
Python Question A Day retweeted
The zip function in #Python is a built-in function that takes two or more iterable objects and returns an iterator that generates a series of tuples where each tuple contains one element from each of the input iterables.
What will be the output of following code in #python?
```
x = [1, 2, 3, 4, 5]
a = *x,
print(type(a))
```
80%List
20%Tuple
0%ValueError: too many valu
0%Int
5 votes • Final resultsAre you trying to learn #python but too busy to follow through, signup at saral.club sharpen your programming skills with a daily question.
Any pytest related tool that autocompletes the test cases?
ex.: tests/test_potato.py::test_potato
I want test_potato to be autocompleted.
What will be the output of following code in python?
#python #100DaysOfCode
Boost up your python skill, with a question a day by signing up at saral.club
#Python Pop Quiz 🐍❓
Which of the following imports doesn't work without installing a package?
A) import urllib
B) import requests
C) import http
D) import json
Hi #python tutors, with chatGPT (and other LLMs in general), do you think people will be more interested in learning about programming languages (especially python) or less?
@driscollis @PythonWithRune @mathsppblog @realpython @clcoding @RealBenjizo
Do you add comments to your #Python 🐍 code? Why or why not?
Are you a Data Scientist or ML Engineer ?
What has changed in your job since ChatGPT arrived or how are you leveraging it ?
Don't directly jump to google as soon as you encounter the problem. Spend some time to solve the problem, if not programmatically, at least logically. Pen and paper are best for this.
What's the best #Python tip you've heard or learned recently?
While I do love the shorten version, keep in mind that 0 and empty values are Falsey by Python but might be a valid value
Saw an issue where this shortcut was used for battery voltage and dead battery issues were being treated as a communication issue.
Replying to @python_a_day @driscollis
Not exactly synonymous... Your first one for the example to be consistent is to make it `if not x` instead of `if x is None`








