Python String (part I)

Strings What is strings ? A String is a type of data used in programming, such as a number and a floating point unit, but is used to represent text rather than numbers. ... For example, the word "kavib" and the phrase "I am kavib" are both strings . Even "373822" can be considered a string if specified correctly. In python, The string should be between single quotes or double-quotes. Strings can print using print() function print 'hello world' print "hello world" Assign to a Variable You can assign strings to a variable using the = operator.     a = 'hello world'     print(a) Multiline Strings In python, we can assign multiline strings using triple quotes. a="""hello world          hello country          hi there""" a='''hello world         hello country         hi there''' Looping via Strings In Python, you can loop, via characters in a string using for loop. for x in 'kav

Hello World | Java | lesson 2

 Java is an object-oriented language (OOP). Java objects are part of the so-called "Java class". "Hello world!" Let's see the Hello World first program which simply prints.  public class Main {   public static void main (String [] args) {                   System.out.println ("This is printed");     }  } The first line defines a class called Main. // Public class main{ In Java, every line of code that can actually be executed must be in a class. This line declares a class called Main, which is common, which means any other class can access it. It's not important right now, so don't worry. Right now we write our code in a class called Main and then talk about objects. Note that when we declare a class public, it must be expressed in a file of the same name (, otherwise we will get a compilation error. When running examples on the website, we don't use the common term because all of our code is written in one file. Next

Introduction to Java

  A little history of Java Java is a programming language created in 1991 by James Gosling of Sun Microsystems (Sun).  The goal of Java is to write a single program and run the program on multiple operating systems.  The first public version of Java (Java 1.0) was released in 1995. Sun Microsystems was acquired by Oracle Corporation in 2010.  Oracle now ships to Java. In 2006, Sun began offering Java under the GNU General Public License (GPL).  Oracle is continuing this project called OpenJDK. Over time, new and improved versions of Java have been released. The current version of Java is Java 1.8, also known as Java 8. Java is defined as a programming language, compiler, base library, and runtime (Java Virtual Machine). Java virtual machine.  The Java Platform is typically associated with the Java Virtual Machine and Java Basic Libraries. The Java language was created with the following attributes: Platform independent: Java programs use the JVM digest and do not directly access the op

Get ready

  Introduction to the Python language Python is a general purpose and widely used high level programming language. It was created in 1991 by Guido van Rossum and developed by the Python Software Foundation. It is designed to emphasize the ability to read code and the sentence allows programmers to express their concepts in short lines. Python is a programming language that allows you to work faster and integrate systems more efficiently. Python has many versions, latest version is  Python  3.9. 1 Before we start Python programming, we need a translator to interpret and run our programs. The Python code editor is designed to make coding and debugging easier for developers. By using these Python IDEs (Integrated Development Environments) you can manage a large code base and achieve rapid deployment. Here is a list of the best Python code editors with popular features and the latest download links. The list includes both open source (free) and premium tools. 1. pycharm 2 .kite 3. spyder D


Hello Friends, I created this website to upload programming language courses.  we are going to cover java, python mainly. Articles will be upload every Monday, Thursday, and Sunday. I am pretty sure , if you stay with these courses correctly you can be good at programming. Stay tuned with me,  Thank you