Close this damn parenthesis in a 5th line BTW, python is weird
Xavier Rivera
You don't have a closing bracket on the line above, so it's looking for args and you give it that so it thinks wtf is this.
Matthew Fisher
Thx user.
Hunter Long
I will pay you in bitcoin cash or PayPal to teach me the basic. Can you give me a throwaway email address to link up?
Tyler Garcia
Ok, so now im getting this,
client.connect ((target_host,target_port)) File "/usr/lib/python2.7/socket.py", line 228, in meth return getattr(self._sock,name)(*args) TypeError: an integer is required
Dylan Young
I'm sorry, but I don't actualy know Python, I don't particulary like this language I know C and C++, a bit of webmastering (HTML+CSS+JS, little PHP) and little of some other languages And come on, I don't want any money for advices
You have to give an IP addres to the function (e.g. 8.8.8.8), not the web address, this expects integer (number) as an input
BTW, if you're not using Windows, then use \n instead of \r\n
Connor Adams
Im using ubuntu, but thx
Austin Lopez
This book is fucked.
Nathaniel Flores
So you should use the \n thing \r\n is just another Windows oddity
What book do you use? Also, is Python your first language? Is this book really for beginners (dealing with sockets is not something newbies should be exposed to)? Did you managed compiling and running your program?
Owen Smith
Nah c++ is my first "Programming" laungauge, before that i learned both windows and Linux shell scripting,the book im using is "black hat python" by Justin seitz i have some minor experience with python with mostly writing to files and the like but really nothing like sockets.
Dominic Evans
and no im still getting errors even with the IP, ill figure it out eventually, i just gotta play around with it.
Blake Brown
Sorry for I thought you are newbie Maybe post your errors here so someone may find a way to fix them
Charles Reyes
yeah, even with c++ my knowledge is limited to i/o mostly cause thats what the program i started writting a while ago required it, now im working on the python scripts that the c++ program is supposed to print to another file, wish me luck.
Jack King
Nice, I'm going to finish alpha version of my vocabulary builder program in C and then I guess I'll learn more about shell scripting, because I barely can use bash and my scripting abilities suck
Aiden Butler
> oof are you self taught?
Oliver Powell
Yup, internet is you're friend Just remember to not give up Try spoj if you want to master your language (or to just get a little better) I use it since recently, but it's very helpful
Jaxson Morales
Nice thanks for the suggestion, i fuckin hate codeacademy, it hasnt really taught me shit, i learned what i know of c++ from sololearn through.
Aiden Flores
kek, it dosent help that i have a learning disability called "dyscalclia" which makes math very difficult.
Hunter Campbell
Try multiple courses till you find the one that fits you, there is even one on wikibooks and there is this book about C language written by it's inventors When you'll understand basics, just think about project you want to make, and then grasp more specific knowledge (like sockets, GUI programming, some other libraries) And remember - stack exchange and Jow Forums are your friends And having dyscalculia has to suck, but it doesn't prevent you from being a great coder