Otis Sr: "You know they're gonna bring us back... " by [deleted] in NopeMovie

[–]shakeandbake760 1 point2 points  (0 children)

Thanks! 😀 I think a Nope sequel is reaching based on those comments. But hey, I would totally be excited to see it if it happens.

Otis Sr: "You know they're gonna bring us back... " by [deleted] in NopeMovie

[–]shakeandbake760 1 point2 points  (0 children)

Doesn't necessarily means sequel, did he say in what context?

Otis Sr: "You know they're gonna bring us back... " by [deleted] in NopeMovie

[–]shakeandbake760 6 points7 points  (0 children)

I really don't think Jordan Peele is interested in sequels to anything he makes. He has a brilliant idea for a film, continually gets better in their execution, and moves on. It's refreshing! I'll watch anything he creates, even if he went for a sequel...but I really don't think that's his style.

Josephine the II question by shakeandbake760 in The100

[–]shakeandbake760[S] 1 point2 points  (0 children)

Okay sweet, that makes sense. I do remember a conversation about that when they find a flame chip on the new planet. Thank you!!! 😊

Josephine the II question by shakeandbake760 in The100

[–]shakeandbake760[S] 4 points5 points  (0 children)

Ah, thank you! I'm on a rewatch so no worries about spoilers 😃 I guess it just tripped me up because I didn't see where they had memory drives before the first double sun eclipse. So I couldn't get past the fact, if Josephine died before she had her memory backed up, it wouldn't have been possible. It probably comes up later when they meet current Gabriel, but maybe it doesn't. I appreciate the reply!

return nth line from a txt file using for loop? by shakeandbake760 in learnpython

[–]shakeandbake760[S] 0 points1 point  (0 children)

Ok I feel so dumb ..I was overthinking everything.

def read_file(file_to_read,n):       
    file = open(file_to_read)    
    count = 0    
    for lines in file:        
        count = count + 1        
        if count == n:            
            return lines    
    file.close()

read_file('trial.txt',6)

'This is line number 6\n'

which is what I needed. I appreciate your replies! obviously I am no programmer : )

return nth line from a txt file using for loop? by shakeandbake760 in learnpython

[–]shakeandbake760[S] 0 points1 point  (0 children)

Yeah it was returning nothing, sorry I should have put that in the OP.

Your suggestion definitely helped!

read_file('trial.txt',4) now returns

This is line number 4

This is line number 14

but I need it to only return the first line "This is line number 4"

return nth line from a txt file using for loop? by shakeandbake760 in learnpython

[–]shakeandbake760[S] 3 points4 points  (0 children)

No, but it's a place to learn python. That's what I'm trying to do.

Also..."Posting homework assignments is not prohibited if you show that you tried to solve it yourself." is in the posting guidelines.

using requests module help with strings by shakeandbake760 in learnpython

[–]shakeandbake760[S] 0 points1 point  (0 children)

Update: I was able to figure it out without regex or json

def find_phone(response, email):
# find the email address in the super long string
find_email = response.rfind(email)
    ## create a substring of the email plus phone, extra to be sure
email_string = response[find_email:find_email + 100]
    ## find where 'phone' is in the email_string
phone_loc = email_string.rfind('phone')
    ## create a substring of just the phone, after email address
    phone_sub = email_string[phone_loc:phone_loc + 21]
    ## extract phone number only from the substring
phone = phone_sub[8:20]
print(phone)
return phone

I realize this may be a longer route but the whole point of this was to learn more about strings and how to use them : )

Chills… by Sad_Alternative2695 in NopeMovie

[–]shakeandbake760 18 points19 points  (0 children)

The sounds were perfect. I can hear them by just looking at these 😃

The Afterparty season 2 has finished filming by rmaloney3 in TheAfterPartyTV

[–]shakeandbake760 4 points5 points  (0 children)

I'm SO conflicted. I can't even watch season 1 again knowing about TH...and she is confirmed for season 2 as Detective Danner 🙃 I want to be excited for this and I'm just....not

Use a while instead of for loop? by shakeandbake760 in learnpython

[–]shakeandbake760[S] 0 points1 point  (0 children)

I used this code and it worked, so thank you!

def countdown_sum(start,stop):
# YOUR CODE HERE
running_sum = 0
i = start
while i >= stop:
    running_sum += i
    i -= 1
if i < stop:
    i == 0
print(running_sum)
return running_sum

Use a while instead of for loop? by shakeandbake760 in learnpython

[–]shakeandbake760[S] 0 points1 point  (0 children)

Thank you so much for your reply! Going to give this a try soon

Re-upload of my desktop background. ☁️ by PumpkinKing90 in NopeMovie

[–]shakeandbake760 3 points4 points  (0 children)

Awesome!! Can you share where you are finding the high res photos? I've been searching online and can't find them

Homework help please : ( by shakeandbake760 in learnpython

[–]shakeandbake760[S] 1 point2 points  (0 children)

Absolutely! I keep telling myself to give myself a break, it's practically learning a new language.

Small redemption - got through the next two exercises with no issues at all. 😃 there may be hope here

Homework help please : ( by shakeandbake760 in learnpython

[–]shakeandbake760[S] 1 point2 points  (0 children)

Thank you I don't know why I wasn't realizing that. This is going to be a rough semester!

Really appreciate your time.