That_One_Guy Posted June 25, 2020 Posted June 25, 2020 Like when I type something out and can't figure out why it isnt working. Shits a different type of frustrating lol
Doom Metal Alchemist Posted June 25, 2020 Posted June 25, 2020 I never learned python but I have learned other languages and this frustration is universal to computer programming as a whole.
That_One_Guy Posted June 25, 2020 Author Posted June 25, 2020 4 minutes ago, Doom Metal Alchemist said: I never learned python but I have learned other languages and this frustration is universal to computer programming as a whole. Python is easy relative to other languages apparently so I can't imagine how frustrating the shit you learned is lol
That_One_Guy Posted June 25, 2020 Author Posted June 25, 2020 Just now, Belle Duckphine said: what is wrong my friend Im a tryhard lmao
tsar4 Posted June 25, 2020 Posted June 25, 2020 I've been debating trying some free courses in it, since I only know SQL & VBA. I tried to get through a book on C+, but found it boring after a couple chapters.
That_One_Guy Posted June 25, 2020 Author Posted June 25, 2020 12 minutes ago, tsar4 said: I've been debating trying some free courses in it, since I only know SQL & VBA. I tried to get through a book on C+, but found it boring after a couple chapters. I heard c++ is really fucking hard lol.if you have experience, I don't think you'll have an issue with python
Doom Metal Alchemist Posted June 25, 2020 Posted June 25, 2020 19 minutes ago, That_One_Guy said: I heard c++ is really fucking hard lol.if you have experience, I don't think you'll have an issue with python You know what's worse than C++? C. I studied C far less than I did C++ though. Also, this probably seems counter intuitive, but it might be worth it to learn COBOL. Nobody uses it anymore, EXCEPT like government agencies that have used it absolutely forever and refuse to upgrade their systems (and this happens a ton) and there is a huge shortage of COBOL programmers out there for obvious reasons. I never learned COBOL myself so I don't know how hard it is or isn't compared to other languages, but just thought I'd put that out there.
That_One_Guy Posted June 25, 2020 Author Posted June 25, 2020 20 minutes ago, Belle Duckphine said: Send me ur code Basically i gotta write a code that let's the user input an integer that calls a function until the function returns the value one. Defining the function was easy. I just can't get the actual code. The function is: Def collatz(number): If number(percent sign)2==o: Return number//2 Else: Return 3*number+1 So yeah I'm sure I just don't know what I'm doing
That_One_Guy Posted June 25, 2020 Author Posted June 25, 2020 7 minutes ago, Doom Metal Alchemist said: You know what's worse than C++? C. I studied C far less than I did C++ though. Also, this probably seems counter intuitive, but it might be worth it to learn COBOL. Nobody uses it anymore, EXCEPT like government agencies that have used it absolutely forever and refuse to upgrade their systems (and this happens a ton) and there is a huge shortage of COBOL programmers out there for obvious reasons. I never learned COBOL myself so I don't know how hard it is or isn't compared to other languages, but just thought I'd put that out there. I gotta get this python shit first haha. I'll worry about the real shit once I get out of kindergarten
tsar4 Posted June 25, 2020 Posted June 25, 2020 8 minutes ago, Doom Metal Alchemist said: You know what's worse than C++? C. I studied C far less than I did C++ though. Also, this probably seems counter intuitive, but it might be worth it to learn COBOL. Nobody uses it anymore, EXCEPT like government agencies that have used it absolutely forever and refuse to upgrade their systems (and this happens a ton) and there is a huge shortage of COBOL programmers out there for obvious reasons. I never learned COBOL myself so I don't know how hard it is or isn't compared to other languages, but just thought I'd put that out there. Ages ago, I learned Assembly Language. I thought it was interesting, especially the troubleshooting aspect, but it was part of my Electronics Tech curriculum. If I had it to do over again, I'd have switched to Computer Sciences.
That_One_Guy Posted June 25, 2020 Author Posted June 25, 2020 1 minute ago, Belle Duckphine said: what are the restraints on getting the function to return 1 Basically I just don't know how to write the code. I'll be totally honest idk where to start. I know this doesn't help at all but I'm lost. I have to write a code that allows the user to type in a number that will call that function until the function returns one. I think the first thing I should do is import the function. That's a thing right?
Doom Metal Alchemist Posted June 25, 2020 Posted June 25, 2020 2 minutes ago, That_One_Guy said: Basically I just don't know how to write the code. I'll be totally honest idk where to start. I know this doesn't help at all but I'm lost. I have to write a code that allows the user to type in a number that will call that function until the function returns one. I think the first thing I should do is import the function. That's a thing right? What's the error your getting? Is the function returning the wrong answer or is the whole program failing to run at all?
tsar4 Posted June 25, 2020 Posted June 25, 2020 Without knowing anything about python, how are you forcing the entry to be an integer? Suppose the user types a letter or symbol? You'll probably need an error trap. (if that's what they call it in python)
That_One_Guy Posted June 27, 2020 Author Posted June 27, 2020 1 minute ago, Belle Duckphine said: Couldn't you just do number +1? Chu mean hot gamer girl?
That_One_Guy Posted June 27, 2020 Author Posted June 27, 2020 4 minutes ago, Belle Duckphine said: In collatz i just tried that and it made the dopest wall of numbers haha
That_One_Guy Posted June 27, 2020 Author Posted June 27, 2020 3 minutes ago, HardcoreHunter said: Have you tried while number is >=1 Yeah it printed all the values except one. That's why I threw in that if statement at the end
Recommended Posts