python looks almost exactly like C.. naturally since it's built with C.
Open up notepad
>If you are using a Unix-like OS, you generally just have to use make or something.
as a result of this i can only figure out how to compile shit in linux and not in a non-autistic os but i cant figure out how to do anything but compile code in linux because its for autistic nerds, so i have to dual boot.
compiler flags that tell the compiler what os and/or what hardware and/or what libraries to use.
that's the whole point of using a makefile.
minigw or cygwin will do that for you for compiling on windows.
(or compiling for windows on linux)
ie cross-compiling
as long as you write the program using libraries that are ported to windows it wont be an issue linking them.
>python looks almost exactly like C since it's built with C.
Bullshit. Many Lisp, Smalltalk and Forth implementations are coded in C, and all these these languages look nothing like C.
Also, Python was more influenced by ABC, a language who was intended to replace things like BASIC, than C.
Because it has a pretty simple syntax, dynamic typing and don't use braces for code blocks. It kinda looks like pseudocode when you are just writing a simple algorithm, not OOP.
That said, pseudocode can take many forms. My algorithms professor made us write stuff in some sort of Pascal-like pseudocode
You can totally do this, OP. Just not in C++, because C++ is not designed for this workflow.
Python literally looks exactly like C without brackets and initializing main function. They are both easily readable. I'd argue python 3 is even more nonintuitive than C.
Calling it psuedocode is fucking retarded
it's not pythons fault that it's a well designed language, for what it's intended for.
>lisp
>interpreted
repl ≠ interpreted
>Python literally looks exactly like C without brackets and initializing main function.
Does this looks like C to you ?
>filter(lambda x: (x ** 2) % 7 is 0, [a + b for a in range(10, 30) for b in range(9, 140, 20)])
Of course, it's an ALGOL-like language and Guido van Rossum wanted to make "a descendant of ABC that would appeal to Unix/C hackers", but saying it looks exactly like it is far-stretched.
Look at the ABC Wikipedia page and you will see the obvious affiliation.
Btw, Javascript looks more like C than Python.