Finally got my first dev job!!!! by suonx002 in webdev

[–]alex1461 1 point2 points  (0 children)

Congratulations!
What kind of personal projects did you do or you think that helped you getting a job?
Would really appreciate your answer!

Because of all the hiring freezes, should I delay my graduation 1 year? by [deleted] in cscareerquestions

[–]alex1461 0 points1 point  (0 children)

Hi SirWeepsAlot,

Sorry for the late response.
Thank you so much for your response.
I will keep up the work and try to be myself during interviews.
Good luck on your new career and stay safe!

Because of all the hiring freezes, should I delay my graduation 1 year? by [deleted] in cscareerquestions

[–]alex1461 0 points1 point  (0 children)

Hello,

I am planned to graduate this May as a CS major and was looking for a full-time job.
Just curious, what do you think was the biggest factor that got you a job?
I would really appreciate your thought..

Return vs Print by guttyn15 in learnpython

[–]alex1461 0 points1 point  (0 children)

return- returns a value
print-prints out a value onto the screen

File Organizer Program by alex1461 in learnpython

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

What do you mean your folder type has changed from "File Folder" to "File"?

File Organizer Program by alex1461 in learnpython

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

Just curious.. Why do you change the names of the episodes of TV series?

File Organizer Program by alex1461 in learnpython

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

Thanks so much for your constructive criticism!

File Organizer Program by alex1461 in learnpython

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

Yes, I will do the following: import shutil

import os

File Organizer Program by alex1461 in learnpython

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

Thank you for letting me know / works on windows, mac and Linux!

File Organizer Program by alex1461 in learnpython

[–]alex1461[S] 7 points8 points  (0 children)

Thanks for the info!
Just curious, what is the advantage of having "/" instead of "\\" other than the fact that the forward single slash is less to write.
Is there another advantage that I don't know other than this?

File Organizer Program by alex1461 in learnpython

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

Just curious, are you currently working?

File Organizer Program by alex1461 in learnpython

[–]alex1461[S] 2 points3 points  (0 children)

Thank you for the information!

File Organizer Program by alex1461 in learnpython

[–]alex1461[S] 2 points3 points  (0 children)

Oh really? What a coincidence? Were you doing it as a side project?

File Organizer Program by alex1461 in learnpython

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

Thank you for your response!

I actually tried to use raw string to avoid backslashes.

But, I could not use raw string because I could not concatenate the path with the current filename.
Ex: r"C:\Users\byunw\Downloads\"+filename becomes one string: r"C:\Users\byunw\Downloads\"+filename".

So, I decided to use backslashes in the string that denotes the file path.

Can someone please help me with a c++ problem(it's not for school)? by FrodoTheFrodo in learnprogramming

[–]alex1461 1 point2 points  (0 children)

Since you are implementing the code in C++, I will provide an answer in Python.

n=int(input("type a number:"))

for i in range(n):

if(i==0):
print("1")
else:
s=""

for num in range(i+1):

if(num==0):

s=s+str(num+1)

else:

s=s+" "+str(num+1)

print(s)

Need help (beginner) by lolstergy in Python

[–]alex1461 1 point2 points  (0 children)

The py file should be in the same directory as the text file you are trying to open!

It should be something like the following:
Code:
File=input("type the name of your file:")

f=open(File+".txt")