python uses white space indentation,rather than curly braces or keywords,to delimit blocks.
white space = right space
in c language:
#include <stdio.h>
int main(void)
{
// your code goes here
return 0;
}
in c++ language:
#include <iostream>
using namespace std;
int main()
{
// your code goes here
return 0;
}
in Java language:
import java.io.*;
class Classname
{
public static void main (String[] args)
{
// your code goes here
}
}
in c#(.Net) language:
using System;
public class Test
{
public static void Main()
{
// your code goes here
}
}
in Python language:
class classname:
print("hai Siva")
No comments:
Post a Comment