Python is the ideal programming language for beginners to learn. Python has a simple syntax and requires much less "boilerplate code" than many other programming languages, so you can quickly start writing useful programs. Python is a very widely used programming language due to its versatility and ease of use. If you want to learn coding but aren't sure where to start, Python is a great choice.
Java is more difficult to learn than Python but it has features that make it well suited to building very large, high-performance applications that may need to be maintained for decades. This makes it a widely used programming language. In fact, for many years, Java has been one of the most popular programming languages used by professional programmers.