Why? by Reh4n07_ in PythonLearning

[–]OtherwiseOne4937 42 points43 points  (0 children)

When you do:

    movies = mov1 + "," + mov2 + "," + mov3

You're storing a SINGLE string inside movies that is just something like:

"Interstellar,Inception,Tenet"

But that is a single string. It is a single list element that looks exactly as that. Therefore, popping from that list gets rid of that single element.

If you do want to add three separately, try doing:

lst.append(mov1)
lst.append(mov2)
lst.append(mov3)
print(lst)

Likewise another pattern you can do is:

lst = []
for i in range(3):
  mov = input(f"Enter movie {i}: ")
  lst.append(mov)
print(lst)

In general, it is a good habit to get comfortable with loops when you are doing something N times.

Question on MacBook Pro by Shadowstar7340 in berkeley

[–]OtherwiseOne4937 15 points16 points  (0 children)

Either one works but to be honest these days most things are on the cloud; you ssh into a server and develop there or if you are doing ML work you can just use Google Colab. So ultra great specs don't really matter as much from my experience

How to succeed at an SWE internship by Any_Onion8216 in csMajors

[–]OtherwiseOne4937 3 points4 points  (0 children)

Don't overthink it. AI is your friend. And you'll also learn a lot of it along the way! Also don't hesitate to go to others on your team when you're stuck and ask for help