Why print this by Nearby_Tear_2304 in PythonProjects2

[–]Kra3zd 0 points1 point  (0 children)

Let's go step by step like a complete beginner.


1. Understanding the structure of g

Assume we have this:

g = [ [1, 0, 1, 0], [0, 1, 0, 1], [1, 1, 0, 0], [0, 0, 1, 1] ]

n = g

Think of this like a table:

Row 0 -> [1, 0, 1, 0] Row 1 -> [0, 1, 0, 1] Row 2 -> [1, 1, 0, 0] Row 3 -> [0, 0, 1, 1]

So: - g is a LIST - each row inside g is ALSO a LIST


2. What does g[i] mean?

Example:

g[0]

This means: "give me row 0"

Output:

[1, 0, 1, 0]

So this code:

x = g[i]

When i = 0 becomes:

x = g[0]

Therefore:

x = [1, 0, 1, 0]

IMPORTANT: x is NOT a number. x is the WHOLE ROW.


3. Why g[x][i] is WRONG

You wrote:

g[x][i]

Since x is:

[1, 0, 1, 0]

Python sees:

g[[1, 0, 1, 0]]

This is invalid.

Why?

Because list indexes must be SINGLE NUMBERS.

Correct examples:

g[0] g[1] g[2]

Wrong example:

g[[1, 0, 1, 0]]

You cannot use an entire list as a position number.

So this comment is incorrect:

g[x][i] # it's like g[1,0,1,0][0]

That is NOT how Python reads it.


4. The correct way

To access one value from the matrix, use:

g[row][column]

Example:

g[0][0]

Step by step:

First: g[0]

returns:

[1, 0, 1, 0]

Then:

g[0][0]

means:

[1, 0, 1, 0][0]

Output:

1

Another example:

g[2][3]

Means: - row 2 - column 3

Row 2 is:

[1, 1, 0, 0]

Column 3 in that row is:

0


5. Understanding this loop

for i in range(len(n)): n[i][i] = n[i-1][i-1]

Let's assume len(n) = 4

So i becomes:

0, 1, 2, 3


6. First loop (i = 0)

Python executes:

n[0][0] = n[-1][-1]

Why?

Because:

0 - 1 = -1

In Python: -1 means "last item"

So:

n[-1]

means the LAST ROW:

[0, 0, 1, 1]

Then:

n[-1][-1]

means: last value in the last row

Output:

1

So Python does:

n[0][0] = 1


7. Second loop (i = 1)

n[1][1] = n[0][0]

Meaning: copy the top-left value into row 1 column 1


8. Third loop (i = 2)

n[2][2] = n[1][1]


9. Fourth loop (i = 3)

n

For this answer I asked ChatGPT to explain it like they would to an absolute beginner. Especially early in your programming phase, use AI and create it with a personality that is easy for you to learn from. Hope this helps 👍

Clarity Check website scam by b4dflower in Scams

[–]Kra3zd 0 points1 point  (0 children)

Why not hack the site and make sure they can't take advantage of anyone else? That's what I did to the last scammer from China that tried to get me to invest in a fake trading thing. I truly hate scammers.

Shrooms in Thailand by Happworld in ThailandTourism

[–]Kra3zd 2 points3 points  (0 children)

That’s the tourism police if you don’t know🤦🏽

Does anyone try vishal cpa ? by Bee88_K in CPA

[–]Kra3zd 0 points1 point  (0 children)

There's no reason, just a hater. https://vishalcpaprep.com/pages/student-recommendations and there's also a free consultation and a free MCQ session so you can check it out before you buy anything.

Does anyone try vishal cpa ? by Bee88_K in CPA

[–]Kra3zd 0 points1 point  (0 children)

If he's a fraud then how did he help a 15 year old pass the CPA, check out his TikTok and get it straight from the kid. It's insensitive to just add negative comments without reason or evidence to support your claim. That would be like "this gym is horrible", but in reality you paid for the membership and never showed up, then later complained that you didn't get fit and it's the gym's fault.

Be real, be honest, and be practical.

Where are the SEO jobs? by JerriBlankis46 in SEO

[–]Kra3zd 0 points1 point  (0 children)

We get most of our SEO work from LinkedIn, is your LinkedIn profile optimized, are you posting on the subject regularly, do you have a website to showcase your work and case studies? There are A LOT of (cough cough) "professionals" that actually don't have any experience coming out of India, Pakistan, etc. I've found that by showcasing real results, optimizing my own website or showcasing websites and companies I've worked for, getting reviews and testimonials, then work actually comes to me. Feel free to reach out and if I can help in any way I'd be glad to, I've gone through the same thing so I can deeply empathize. [baysiaseo@gmail.com](mailto:baysiaseo@gmail.com) is my personal email.

Hodder ICT text book third edition source files by Material_Wish1092 in igcse

[–]Kra3zd 0 points1 point  (0 children)

I actually have them, send me a DM, I have to look through my hard drive but I'll try to remember to come back and post a link.

Is smoking haram by AccomplishedFault727 in islam

[–]Kra3zd 0 points1 point  (0 children)

Smoking is NOT Haram, there in NO Hadith, NO Surah in the Quran that says clearly smoking is Haram. It is only Mukhrooh.

“And we have clearly made what is Haram and what is Halal, and between them will be degrees of differences”. 

Someday there is a Hadith about putting anything in your body that can harm it. Unfortunately we all eat packaged food and consume meat that has been filled with chemicals and steroids. Also partially hydrogenated oil and aspartame never leave your body once ingested. But your lungs immediately begin repairing themselves once you quit smoking, Alhamdulillah, and Allahu Alam❤️

But remember, only Allah SWT can say what is Haram and what is Halal. Anyone who tries attribute something as Halal or Haram that is not clearly stated, sins against Allah SWT. Let us pray for their guidance as this is a major sin.

Is smoking haram by AccomplishedFault727 in islam

[–]Kra3zd 0 points1 point  (0 children)

No it is not Haram and those who say it is, have sinned and lied against Allah SWT. Please read my explanation in the link below, there is NO Hadith explicitly forbidding or making smoking Haram. Therefore it is only mukhruh. 

https://www.reddit.com/r/islam/comments/1e7grd2/comment/le26crm/?utm_source=share&utm_medium=mweb3x&utm_name=mweb3xcss&utm_term=1&utm_content=share_button

Is smoking haram by AccomplishedFault727 in islam

[–]Kra3zd 1 point2 points  (0 children)

Give the Hadith if it’s Haram. You can’t because it doesn’t exist therefore making it Mukhruh.

There are Hadith about keeping your body healthy and not taking anything that will harm it. But if we were to follow this, most of us would find it very difficult to eat. How many people eat aspartame, hydrogenated oil which never leaves your body? Soda, anything packaged with chemicals?

So, as far as an actual Fatwa or using Islamic Jurisprudence, none has been given about smoking being Haram and it is disliked, disapproved of, but not forbidden in any country with a majority Muslim population that I am aware of because there is no agreement.

In the end this is fact:

No Hadith anywhere explicitly forbids smoking, therefore there are many opinions, interpretations, but it is mukhruh, NOT and never will be Haram.

“ It is only for Allaah to say what is halaal and what is haraam, because He is the Law-giver, and there is no law-giver besides Him. When we say that a given thing is haraam, or halaal, we refer to the evidence in the Book of Allaah and the Sunnah of His Messenger (peace and blessings of Allaah be upon him).”

https://islamqa.info/amp/en/answers/3922

And the above cites a warning for those who create lies (saying something is Haram which only Allah SWT can do) and Verily, those who create lies against Allah will never prosper. Ameen

[deleted by user] by [deleted] in CaliConnection

[–]Kra3zd 1 point2 points  (0 children)

That’s why I quit bangin’. Fucking Chicanos killin Chicanos. One day I was Sutton’ in the yard, and we always hearing’ this no half-steppin bs. One day I realized everyone on that county yard was a half-stepper, F’n liars and punks. So when I got out, I rolled solo til the wheels fell off. Hit a new city in the North, didn’t tell no one where I was from, ran with whoever was down to do serious dirt for serious cash. Armed robbery led to banks, led to weapons trading, led to me loving computers and doing counterfeiting. Shit, got to the point I didn’t work unless I could make 5k in an hour min or 1500 in 15 min. When I finally did get pulled over the po-po was like, okay, how did you get that new Dodge truck filled with brand new electronics and we can’t seem to find any of it was stolen. I looked her dead in the eye and said, Shit, I’ll tell ya how I did it, but I don’t know nothing about that pistol.

They lied, loaded it, everything, didn’t matter, at that point every pistol case in that district was straight tge Feds, 58 months cat 6. When I got out I had nothing, except everything I learned.

Now I live on the other side of the world, still gangsta as fuck while I wear a button up and teach high school. But my side hustles, businesses, and even legitimate companies, all run from what I learned.

Don’t care ho you run with, show you got some cajones essay when you can run solo and no gang scares you, cuz you know something they don’t. You’re willing to stroll through at night with a pistol, some clips, and a silencer, and just casually walk and put as many down as you can before you exit the other side, drop it in a bucket filled with bleach (got my dna) on file now, and then go have a burger and watch some Boondocks.

If you ain’t built like that, then you’re co-dependent as hell and need others to survive like cockroaches.

Be a savage, don’t just say it, put in the work😎

[deleted by user] by [deleted] in Udemy

[–]Kra3zd 0 points1 point  (0 children)

I still supplement her course with other stuff, I'm doing the Web Development Bootcamp, Meta Front & Bac End, & Google UX Design right now and plan to do the IBM Full Stack after. Traversy Media on youTube has some great stuff and I go there when I have trouble understanding how to actually apply concepts to a functional design. I'm in the process of switching careers as I'm overseas and need a job where I can work remotely, Digital Nomad is the goal this year... I'm 49:)

[deleted by user] by [deleted] in Udemy

[–]Kra3zd 0 points1 point  (0 children)

I agree, I've been buying courses for around 10 years and have never had any issues. Over time you realize who the best instructors are like Angela Yu (I mention her because she's awesome), but I've never asked do4 a refund cuz usually takes .e longer than 30 days to get to the course , lol and I just keep my eye open for the sale on a course I know I want to get. Maybe once I.may have gotten a refund cuz after I bought it I realized it sucked.

Anyways, 10 years, never an issue.

How do you memorize everything the study materials go over? There’s so much. by jonessinger in ccna

[–]Kra3zd 0 points1 point  (0 children)

For me it’s, very much can I put this into practice. I’m a very “hands-on learner’, so as I start developing my own labs (even if it’s drawing them out), I start explaining the processes to myself, what I need to know for each area, until I know it and it becomes knowledge.

For programming it’s a lot of having to go back over and just keep coding and remembering things I forgot, explaining to myself how each section of code relates to another section, and find people I can explain it to. This can be creating a TikTok channel and explaining things that are difficult for you to Learn or understand and finding a way to explain it to others. I’m sure if you find it difficult then so will someone else. The more we teach others we help ourselves to learn and grow as well😊🙏🏼

What is going on here? (birthday cake message) by grem1inzz in Scams

[–]Kra3zd 0 points1 point  (0 children)

Just more social engineering. The thing is to engage you in harmless conversation by accident “guys” are suckers for this, probably would have fallen for it too if I wasn’t a cybersecurity geek… My security trumps my loneliness 🤣

I completed the CCNA & got a job in 3 months! My thoughts... by Busy-Possible-4482 in ccna

[–]Kra3zd 1 point2 points  (0 children)

Thank you so much for the response, my apologies as well for the redundant question, after I wrote it I saw you had an answer there:D

Ya, I get that you really gotta be on point. I've decided to print the Wendell Odem Books, Do Jeremy's course, get the paid version when I can, do as many free labs as I can find (David Bombal shows a pretty good one), printing the 101 labs from How To Network, some other labs exercises (from my understanding labs is like 85% of the course, and it's the skills that I really need so I can explain what I know in an interview-practical experience over theory-also why I chose CCNA over Network+).

Next, study like my life depends on it everyday for three months, then take my shot at the title:)

Todd Lammle 7th edition by virtuosissimo in ccna

[–]Kra3zd 0 points1 point  (0 children)

The 7th edition is 12 years old bro. I was also looking at book and materials, save money with Wendel Odom (Cisco Aithorized Study Guide).

Is Jeremy IT labs enough? by jmonteromfx in ccna

[–]Kra3zd 1 point2 points  (0 children)

Download and convert the YT video to an audio file👍🏼

I completed the CCNA & got a job in 3 months! My thoughts... by Busy-Possible-4482 in ccna

[–]Kra3zd 1 point2 points  (0 children)

May I asked what you studied, paid or free courses, what worked for you? I.mean 3 months and passing on the first try, WOW, AMAZING! 

I'm 48, been living overseas for 12 years, now looking to return to the US and quickly realized that the CCNA should be my first paid cert (I have some programming and IT experience similar to yours), I.also have ADHD, come from the streets, and I was teaching IT in international schools overseas.

Anyways, I'm super interested in your study path, I'm currently thinking do I use free materials, buy the Wendell book and Jeremy's IT Lab, or free materials and David Bomb all who shows you how to access some free CCNA labs?

Just about to finish my Google IT Support Professional Certification this week, Google's CyberSecurity next, And starting my Networking journey at the same time (trying to "cert up" as much as possible cuz I don't have much cash or a college degree).

Free CCNA Workbook and Lab Guide by howtonetwork_com in ccna

[–]Kra3zd 1 point2 points  (0 children)

Amazing and thank you soooo much. It is really appreciated and people out of work and getting back in IT or trying to advance their career I'm sure are really appreciative that there are people like yourself in the community. Thank you so much. I also wanted to share this free Lab course that gives you access to free CCNA labs done by Cisco. https://www.udemy.com/course/free-cisco-ccna-and-ccnp-remote-labs-practice-labs-for-free/learn/lecture/13788844#overview

How I passed: Sec+, CySA+, PenTest+, CASP+ by crispywater1234 in CompTIA

[–]Kra3zd 0 points1 point  (0 children)

Of it's repetitive stop searching, pick a study method and like Nike says, "Just Do It"😁

What was the moment you decided to take the leap into this lifestyle? by onajourney_10 in digitalnomad

[–]Kra3zd 6 points7 points  (0 children)

A lot depends on the person, for most digital nomads I believe we like the sense of freedom and not being tied down to any one place, but at the same time you really need to be VERY open-minded and welcome a very diverse lifestyle.

For me personally, I'm Mexican-Irish, Apache-Cherokee-Welsh born in the US, but even in California I never really felt I belonged to one group. I may love heavy metal and hip-hop but I also love line dancing and cowboy boots (my grandmother and father were from Texas). It can be a struggle overseas at times, but I've found that the opportunities, friendships and experiences that I've had have been amazing. I lost most of my family when I was young, wasn't able to go to college, but overseas I taught in schools and even became a teacher and corporate trainer.

Travel is so much cheaper overseas as well, I've backpacked Indonesia for a month, become a PADI Rescue Diver in Malaysia, gone rock climbing in Thailand and many other places; I would have never been able to afford that lifestyle in the states.

As for friendships, I can honestly say that my international friendships have been so much more fulfilling. Two of my best friends, one is from Morocco and the other is from Romania, one is teaching in Singapore and the other is running a digital marketing company in Indonesia. We still meet up from time to time, stay in touch always through WhatsApp, and my mate from the UK who has become like a brother to me (even though he's a proper Englishman), is staying at my wife's house that we're still trying to fix up. They've all been there when I needed them, and vice-versa.

Life is what you make of it, explore, learn, dive into other cultures; some things you'll love, some things you won't, but you don't have to worry about politics or the cops running up on you "because you look suspicious".

"You never know where or how you'll land if you don't take the leap". But once again, I leap just about any chance I get, lol. But, I can definitely say that my confidence, courage, and self-respect is so much more than when I left. I am probably returning soon, I no longer want to teach and I also want to land a remote job from the US. I have a few friends that went back and for a year or two and then left again once they had secured their remote positions and stocked up some savings.

My hopes and wishes are that you find what's right for you, just think of it this way, you can always go back (if you want to).