I'm new to programming or want to start programming! I would like to introduce a programming language called Python to those who are thinking.
What I often see on the web is C for beginners! Or, beginners are Java! There are many sites called. The programming language I first touched on was C, and the second was Java. Certainly, C is said to have become the source of most programming languages, and Java is said to be the mainstream language in the IT industry, so it's a good idea to remember one of these two as an introduction. I will. Here's something I would like to say as an experienced C and Java ... C language → just difficult Java → I feel stressed when writing
What is difficult with C and Java? (For C language) Pointer I think it comes down to this. Most of my friends and experienced programmers also struggled or frustrated with this pointer ... So I personally think that C language is a language that beginners should learn. However, as I mentioned earlier, C is the language that is the basis of most programming languages, so if you understand the basic grammar of C, you can easily understand the grammar of other programming languages. ..
(For Java) I think Java is a language that is easier to remember than C ... Personally, I have a lot of code (the amount of writing a program), so I feel stressed when writing ... (I may be the only one) I think that teaching Java in new employee training at many IT companies means that there are so many jobs in Java, so if you can master it, you will not have any problems with your work.
Reasons to recommend Python to beginners ① It is much easier to learn than C language or Java ② I don't feel stress when writing ③ Excellent future with the arrival of the machine learning boom ← Promising at the Kiyomiya-kun level in baseball ④ If you become a "Python programmer", you can get rich! ??
I compared it with Java
Java
public class Hello{ //Here, it is Hello.
public static void main(String[] args){
System.out.println("Hello World");
}
}
Python
print("Hello World")
What do you think. Java just wants to output Hello World, but it casts a long spell. Python, on the other hand, ends with just one line.
Java
import java.util.Scanner;
public class Hello{ //Here, it is Hello.
public static void main(String[] args){
Scanner <Arbitrary variable name>=new Scanner(System.in);
}
}
Python
<Arbitrary variable name>=input()
As you can see, Java cast a rather long spell when entering characters from the keyboard, but Python accepts character input from the keyboard by substituting input () for any variable name. I will.
I emphasized the goodness of Python and slapstick using examples, but it is a really wonderful language. I think this can only be understood by actually writing it! I used to call Python as a foolish memory, but what I would like to say to programming beginners is that it is essential to get in touch with various programming languages to improve your skills.
Recommended Posts