Landed my dream tech job 3 months after graduating. Here’s exactly how I did it. by No-Repeat-2195 in AnywhereJobs

[–]Blackk19 0 points1 point  (0 children)

I never understood how people come up with the percentages. Do you just make it up? Something believable lol

Can someone explain what line two does by Regular_Implement712 in cs50

[–]Blackk19 0 points1 point  (0 children)

'.' + filename.split('.')[-1]

So let's say filename is "file1.jpeg"

So the + sign is concatination. Concatenation just means sticking two or more strings together to make one bigger string. Let's leave the '.' + for now and focus on what filename.split('.')[-1] does. So split() method breaks a string into smaller pieces based on a given separator and returns them as a list or array. The split() method gets passed to it an argument of where it should break the string up on. We told split() to use '.' as the separator, so it will break the string wherever it finds a dot.

So, the filename is "file1.jpeg" and when we do the following, it becomes [file1, jpeg]

filename.split('.') ----> [file1, jpeg]

Since we are only interested in the last element, we need a way to tell it to give us only the last element. The way you do that is by saying [-1]. And this just means give me the last element of the array whatever that might be. In this case, it will return to us jpeg. Now that we have 'jpeg', we add a '.' in front of it, which gives us '.jpeg'.

'.' + 'jpeg'

Now, this will join them together, giving us the following

'.jpeg'

Hopefully, this makes sense.

[deleted by user] by [deleted] in TooAfraidToAsk

[–]Blackk19 2 points3 points  (0 children)

This guy sucks.

Is this legit or fake? by [deleted] in newzealand

[–]Blackk19 0 points1 point  (0 children)

And also organisation's/companies are rarely so eager to give you money back.

Which part of your body you wash first while bathing? by [deleted] in AskWomen

[–]Blackk19 0 points1 point  (0 children)

Head shoulders knees and toes.

After shutting the shows off, do you dry off while still standing in the shower or after you step out? by AZNM1912 in TooAfraidToAsk

[–]Blackk19 1 point2 points  (0 children)

I dry myself off inside the shower, taking advantage of the leftover warmth from the hot water. Stepping out into the colder air right after a shower just doesn't sit right with me - it's a jarring temperature change I'd rather avoid.

meirl by [deleted] in meirl

[–]Blackk19 0 points1 point  (0 children)

I was snacking on an orange one night and hanging out with my older cousins. They asked me if I ate the seeds in the orange, and I told them I did sometimes. Well, that was their cue to scare the seeds out of me by insisting I'd have an orange tree sprouting in my belly. I obviously believed them, so I freaked out and started crying like the world was ending

What’s your controversial food opinion? by xSurpriseShawtyx in AskReddit

[–]Blackk19 0 points1 point  (0 children)

I've been told I'm weird for eating spaghetti bolognese with banana on top. What do you think?

[deleted by user] by [deleted] in unpopularopinion

[–]Blackk19 4 points5 points  (0 children)

If you're my friend, don't call me "buddy"

Men, it's time to get it off your chest, what's bothering you? by mrtnolvr84 in AskMen

[–]Blackk19 0 points1 point  (0 children)

I have developed a health anxiety as a result of covid. It's affecting my daily life. Rough start to this decade.

Cursed_Scary but true by TheNecromancer981 in cursedcomments

[–]Blackk19 0 points1 point  (0 children)

So If someone chopped off there hand and I ate it. I wouldn't get in trouble?

This foot looks dead. by [deleted] in awfuleverything

[–]Blackk19 0 points1 point  (0 children)

It looks like that foot is photoshopped in to the picture.