TRENDING NEWS

POPULAR NEWS

Jumping Jacks In Python

Who do you would win, 30ft python vs lion?

First of all, these animals would never meet in the wild - the only python that reaches 30 feet in length is the reticulated python, which is found in south-east Asia where there are no lions (the only lions outside Africa are those in the Gir Forest of India). However, if such a fight was arranged in captivity, the lion would undoubtedly win. Whilst a reticulated python is certainly strong enough to constrict and kill a lion, it wouldn't be given the chance - one bite from a lion could sever the snake's head from its body. The moment a python attempted to coil around a lion, the lion's huge teeth and claws would tear it to pieces. Also, there is no snake on Earth big enough to swallow an adult lion. Some people have a greatly exaggerated idea of the size of prey a snake can swallow.

Should I continue Python or should I learn C#?

You didn’t give much explanation of what you use these languages for. They are usually used for different things or in other words they have different advantages in one context and disadvantages in another. IMO since you are asking that question you are relatively new to the field of programming. My advice would be to stick with one language until you get pretty good at solving problems using it. Actually the best advice is to think more about learning to code and not so much in terms of programming languages. They are tools and knowing the syntax of 100 languages doesn’t mean that you are a great programmer. Good luck !

For a beginner, would you recommend starting with Java or Python?

Probably neither Java nor Python. I would likely start with C for many reasons. One is that you are never going to see a commercial market for Java or Python, even though companies may hire people to write scripts in them. Another is that scripting languages like Java and Python have too many eccentric quirks, so are not good for learning programming fundamentals like C is, which is as generic as they get. But most of all is that since over 90% of all programming is done in C/C++, that is where all the best tools are, to make programming easier. Since all systems programming, commercial apps, network protocols, device drivers, libraries, language interpreters like for Java and Python, web browsers, etc., are all written in C/C++, that is what all the best tools are built for. Things like Integrated Developer Environments, debuggers, optimizers, profilers, compilers, linkers, etc., are almost all for C/C++.Interpreted scripting languages like Java and Python not only run over 500 times slower, but since they can not directly allow you to make things like systems calls, so they have to make the language over 10 times the number of reserved words to memorize than C does, because they have to include wrappers for all the systems calls they decide they are going to let you make.C is one of the smallest and most succinct languages there are. The really are just a few operators for reading in values, doing arithmetic operations on them, looping and branching, doing output, and modularity. Anyone can easily learn all there is to know about C in less than a week. Only about 40 or so reserved words.Not only are there dozens of public domain compiler/linkers like gcc, but you can easily get a free copy of Visual Studio for students from Microsoft. A version a few years old is also just as good, and costs almost nothing. And an IDE like Visual Studio is so easy to use, that you will never want to go back to crude languages like Java or Python ever again.

TRENDING NEWS