tips python-tips   0   63
Print statement in Python vs other programming languages

In this article we are simply presenting the code blocks required in different programming laguages to print 'pythoncircle.com' on terminal. This shows the amount of code you need to write to print a simple string. 


C:

#include <stdio.h>
int main()
{
  printf("pythoncircle.com");
  return 0;
}


C++:

#include <iostream>
using namespace std;

int main() 
{
    cout << "pythoncircle.com";
    return 0;
}


PHP:

<?php
  echo "pythoncircle.com";
?>


C#:

using System;
namespace HelloWorld
{
    class Hello 
    {
        static void Main() 
        {
            Console.WriteLine("pythoncircle.com");
            Console.ReadKey();
        }
    }
}


JAVA:

public class HelloWorld {
    public static void main(String[] args) {
        System.out.println("pythoncircle.com");
    }
}

And now

Python:


print("pythoncircle.com")


That is all you need in python to print a statement. This shows the simplicity of Python. 


tips python-tips   0   63

Related Articles:
What is the meaning of different aphorism in zen of python
What is zen of python. What is the meaning of zen of python. Explanation of zen of python terms with example. Easter egg Zen of python. import this....
Displaying custom 404 error (page not found) page in Django 2.0
How to create custom 404 error page in Django. Handler404 example Django 2.0. Page not found error in Django 2.0. Custom Error handlers in Django 2.0...
How to share data between two systems using python simple HTTP server
How to share large files between two system using python simple HTTP server. share movies using python server. transfer data without pen drive using python....
Designing custom 404 and 500 error pages in Django
How to create your own awesome 404 error or 500 error page in django. Step by step guide to help you design your own 404 not found error page in Django. Design your own 500 internal server error page in Django application...

0 thoughts on 'Print Statement In Python Vs Other Programming Languages'
Leave a comment:


*All Fields are mandatory. **Email Id will not be published publicly.


SUBSCRIBE
Please subscribe to get the latest articles in your mailbox.



Recent Posts:






© pythoncircle.com 2018-2019