Daniel, PhD 🎓

3.2K posts

Daniel, PhD 🎓 banner
Daniel, PhD 🎓

Daniel, PhD 🎓

@Daniel_5phd

DM if you have opportunities in the I.T.

World Katılım Mart 2023
171 Takip Edilen1.1K Takipçiler
Daniel, PhD 🎓
Daniel, PhD 🎓@Daniel_5phd·
@RealBenjizo I would have said C) Because , HERE , y is not None, as it is [2,4,5] which is not empty. Then, the extend function adds 0 to the end of the list [2,4,5] which give the final answer C) #Python
English
0
0
0
82
Benjamin Bennett Alexander
Benjamin Bennett Alexander@RealBenjizo·
Python Question: It's been a while; let's do a Python question. What is the output of this code, and why?
Benjamin Bennett Alexander tweet media
English
10
1
58
7.8K
Benjamin Bennett Alexander
Benjamin Bennett Alexander@RealBenjizo·
SQL Tip: How Order By Works with Multiple Columns When using ORDER BY with multiple columns, the database initially sorts the entire result set based on the first column specified (the sales column in this case). This creates "groups" of rows that have the same value for the first column; e.g., rows that have a sales value of 12,000. The secondary sort (age ASC), unlike the first sort that is applied to the entire table, will be applied to the groups. In this output, you can see that rows with the same sales value have been grouped. For example, Mira and Bob have been grouped because they have the same sales value (12,000). The primary sort, based on the sales column in descending order, resulted in a tie between Mira and Bob. The secondary sort serves as the tiebreaker. Since we are sorting by the age column in ascending order, Mira, who is 30, is placed before Bob. This process is repeated for all tied values in the primary sort. #DataAnalytics
Benjamin Bennett Alexander tweet media
English
6
19
151
5.9K
Daniel, PhD 🎓
Daniel, PhD 🎓@Daniel_5phd·
@DBVolkov That's interesting how things are turning different than some years ago.
English
0
0
0
3
Benjamin Bennett Alexander
Benjamin Bennett Alexander@RealBenjizo·
❗️Soft skills are important, but you still need to learn the tools. Trust me, they will not even talk to you if you do not have the technical skills. Technical skills get you in the door. Soft skills keep you on the table.
English
1
1
5
796
Mike Driscoll
Mike Driscoll@driscollis·
#Python Pop Quiz 🐍❓ What is the output of this silly code? A) NameError B) 0 C) TypeError D) None of the above
Mike Driscoll tweet media
English
4
0
10
2K
Daniel, PhD 🎓
Daniel, PhD 🎓@Daniel_5phd·
@lefticus You will always find people who are going to criticize your very good work. I encourage you to continue what you do, and I wish you a happy year 2025.
English
0
0
1
71
Jason Turner
Jason Turner@lefticus·
I stopped using vim in C++ Weekly episodes because of people telling me I was using vim "wrong". Now I have people in comments telling me I'm using Compile Explorer wrong!
English
26
6
259
11.6K
Python Coding
Python Coding@clcoding·
Colorful Error Bar Plot
Python Coding tweet media
Română
2
40
266
16.1K
Ivica Bogosavljevic
Ivica Bogosavljevic@i_bogosavljevic·
I've been programming in C++ for a long time, but I haven't found a use case for private inheritance, nor have I seen it in production code. Is there a use case for it?
English
19
3
64
15.5K
Benjamin Bennett Alexander
Benjamin Bennett Alexander@RealBenjizo·
Python Question; Question to cure your Monday blues😆 What is the output of this code, and why?
Benjamin Bennett Alexander tweet media
English
5
6
42
3.1K
Mike Driscoll
Mike Driscoll@driscollis·
#Python Pop Quiz 🐍❓ What is the output of this crazy code? A) [[0, 0, 0], [0, 0, 0], [0, 0, 0]] B) [['python', 0, 0], ['python', 0, 0], ['python', 0, 0]] C) [[0, 'python', 0], [0, 'python', 0], [0, 'python', 0]] D) What the heck!?
Mike Driscoll tweet media
English
4
3
29
2.1K
Mike Driscoll
Mike Driscoll@driscollis·
#Python Pop Quiz 🐍❓ What is the output of this code? A) TypeError B) [(1, 3, 5), (2, 4, 6)] C) [1, 2,3, 4, 5, 6] D) [1, 3, 5, 2, 4, 6]
Mike Driscoll tweet media
English
9
4
36
3.9K
Coding Computing Coach
Coding Computing Coach@CodingComputing·
@clcoding rather each character on a separate line (including space) 6 0 + 3 5 = 9 5 And that's the answer!
English
1
0
1
94
Python Coding
Python Coding@clcoding·
What is the output of following Python Code?
Python Coding tweet media
English
16
16
152
18.9K
Coding Computing Coach
Coding Computing Coach@CodingComputing·
Trivial things that demotivate beginners, but even experienced devs have to deal with: ✅ typos ✅ forgotten syntax ✅ reading library's docs Engineering isn't about knowing everything needed; it's about figuring it out.
English
2
0
6
307
Python Coding
Python Coding@clcoding·
What is the output of following Python Code?
Python Coding tweet media
English
31
21
273
39.9K
Coding Computing Coach
Coding Computing Coach@CodingComputing·
@clcoding Answer: 12 18 (on separate lines) Solution: The code roughly consists of 3 parts: 1. Class definition & initialization of prods 2. for loop over range(1,4) 3. for loop over prods Let's consider each of these... +
English
3
3
5
2K