Weekly letter pythonprogramming.email
Hi,
To get the curated list of awesome python articles from all over the Internet, please subscribe with pythonprogramming.email. This is specifically suitable for beginners.
Advertise with us
python-tips   0   1099
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. 


python-tips   0   1099

Related Articles:
Difference between list, set and tuples in Python and more such comparisons
Difference between tuples and lists, raw_input and input, shallow and deep copy, args and kwargs and other different terms explained in python...
5 common mistakes made by beginner python programmers
Most common mistakes made by beginner python programmers, Things to avoid by python programmers, Most common pitfalls/ gotchas in python, Bitten by python scenarios, tips for beginner python programmers, python beginner programmers should avoud these mistakes...
Solving Python Error- KeyError: 'key_name'
Solving KeyError in python, How to handle KeyError in python dictionary, Safely accessing and deleting keys from python dictionary, try except Key error in Python...
Improving python code performance by using lru_cache decorator
Store the result of repetitive python function calls in the cache, Improve python code performance by using lru_cache decorator, caching results of python function, memoization in python...

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.

© 2017-2020 Python Circle   Contact   Sponsor   Archive   Sitemap