Python tutorial: Basic part #1 (" hello world")

in #education8 years ago

WELCOME TO ALL LOVELY PEOPLE OF STEEMIT TO MY BLOG.

As as promise this is the first basic programing of python. and here i had describe all with every single details, as this will be very exciting to learn coding with me on python. and i do promise you if you do learn python with me, there will be no difficulty for you to learn any other program.

How to print "hello world"

OK in this first session i cover the vary basic coding of printing some word. and also describe varies ways to use to print you commend.
python hello world.png

so if you want the whole coding i will put it here for you...

ok so we are in pyrhon.

And we are going to learn our first program print "hello world"

so for that we have to use "print" command.

print("hello world")
hello world

here print command is used the character you want to display.

print('hello world')
hello world

instead of using " (dubble cotation) we can also use ' (single cotation

it also serve same purpose.

lets try to print something else,

print("hello my name is vikash and i want to learn python \nand i am very excited")
hello my name is vikash and i want to learn python
and i am very excited

here i am using back slash "\n" to print the next character in next line.

or we can also do it by..

print("hello this is vikash")

SyntaxError: EOL while scanning string literal

print("hello my name is vikasf

SyntaxError: EOL while scanning string literal

print(" hello my name is vikash
and i like football
i also run steemit")

hello my name is vikash and i like footballi also run steemit

or we can use back slash also in this manner if we dont want to write long.

well as you can see i use "#" for writing the comment so you also can.

congratulation you had learn your first lession in python.

Thanks for visiting my blog, if you find any problem please fell free to ask..

As every steemitian I also need your support, because your support give motivation to do continue my good work.

GettyImages-486369622-5a0084434e4f7d001a5d2ec8.jpg

Sort:  

Sneaky Ninja Attack! You have been defended with a 1.21% vote... I was summoned by @funatoz! I have done their bidding and now I will vanish...Whoosh

This post has received a 37.34 % upvote from @aksdwi thanks to: @funatoz.

This post has received a 0.38 % upvote from @booster thanks to: @funatoz.

This post has received gratitude of 0.56 % from @appreciator thanks to: @funatoz.

Thank you @funatoz for making a transfer to me for an upvote of 2.32% on this post! Half of your bid goes to @budgets which funds growth projects for Steem like our top 25 posts on Steem! The other half helps holders of Steem power earn about 60% APR on a delegation to me! For help, will you please visit https://jerrybanfield.com/contact/ because I check my discord server daily? To learn more about Steem, will you please use http://steem.guide/ because this URL forwards to my most recently updated complete Steem tutorial?

You got a 1.17% upvote from @postpromoter courtesy of @funatoz! Want to promote your posts too? Check out the Steem Bot Tracker website for more info. If you would like to support development of @postpromoter and the bot tracker please vote for @yabapmatt for witness!

You got a 0.53% upvote from @mercurybot courtesy of @funatoz!

Coin Marketplace

STEEM 0.05
TRX 0.33
JST 0.078
BTC 62894.44
ETH 1674.44
USDT 1.00
SBD 0.39