Sabitlenmiş Tweet
Moses Oshokeh
904 posts

Moses Oshokeh
@techwithmomo
Python Programmer Author of DISCIPLINE ARCHITECTURE Founder @WeAreCognis
404 Katılım Haziran 2025
34 Takip Edilen26 Takipçiler

That unused variable sitting in your code... is it wasting memory? 👀
Moses Oshokeh@techwithmomo
Have you ever wondered what happens when you declare a variable and never use it? Surprisingly, not much. In compiled languages like C, C++, and Rust, modern compilers are smart enough to detect unused variables and remove them during optimization.
English

@aditiitwt It's not a matter of preference but One of use case.
Which method will solve this current problem right now...
This is best observed in JavaScript where you have at least 4 kinds of loops that handles the same task differently.
English

@pamilhereen it's obvious you are a foodie, because what do you mean by snacks to lock in...
English

The stupidest thing about Python is that it treats a string as an array, but you can’t change a character as an element of such array. It’s an “immutable array”, the dumbest thing I’ve ever seen outside of Java.
Moses Oshokeh@techwithmomo
@PythonPr Before talking about the Len() you need to understand that python treats every string as an array of character. Yes. That means every char is its own individual string within a collection. So the Len() count this individual strings within the collection and return is length.
English

@Raynerdtech I love this...
I don't help them because whatever I give them won't be good enough plus even if I could give them millions they will probably blow it up and end up back on the street...
English

@e_opore I would think you are ragebaiting because every language down there is better than python except. JavaScript
English

@PythonPr Sorry ran out of words there ...
The Len() function returns the collective length of an object.
English

@PythonPr Before talking about the Len() you need to understand that python treats every string as an array of character. Yes. That means every char is its own individual string within a collection. So the Len() count this individual strings within the collection and return is length.
English

@CodeByNZ The second code snippet will throw an indentation error at runtime. This is specific to python as python depends on indentation to identify a code block.
The first will run successful because it follows python syntax rule.
English

@PythonPr Answer is A because the insert method takes two argument one is the location or index the other is the value to be inserted into that index
English

What good is a product if nobody knows about it.
We have seen instances of bad product's generating a whole lot of money just because of marketing.
So to answer this question a cofounder who can sell and under human psychology is way better than a cofounder who can code.
Devansh@thenowhereway
Founders, would you rather have: - cofounder who can code - cofounder who can sell
English

@Yourtechguy_001 @PythonDvz no step of 2 should be (1,4) not (1,3) therefore the answer should be 5 .
English

@PythonDvz Answer: A
(Start:Stop:Step)
Start at 1 stop at 5 with step of 2
We have (1,2,3,4)
5 won’t be included
Step of 2 would be (1,3)
x+=i
x=(1,3)
x=1+ 3
x = 4
English
















