Python Programming [Part-02] :: Variable and String and Data Input. by humaira

View this thread on steempeak.com
· @humaira ·
$0.24
Python Programming [Part-02] :: Variable and String and Data Input.
![image](https://img.esteem.ws/ba5p8gt4cp.jpg)

Hope to be good. 
I appeared on Python 's second part.

If you didn't read my previous post [click here](https://steemit.com/busy/@humaira/python-programming-part-01)
 
In the middle 
Today I will discuss the variables and string 
and data inputs. Before that we had 
an overview of the old issues . Like 
the previous episode, we print something down below. 
Write all in Python's New Window:


 
1 print (22/7) 
2 print (10 * 3) 
3 print ("your name is .........") 
4 print ("22/7 is", 
22/7 ) 5 print ("11 * 6 is", 11 * 6)
and see these results by running them. 
Variable and string:
Variable is an 
object that stores different data. And the string is the 
data that is stored in the variable. 
If you look down, the matter will be more clear. 

1 a = 12 
2 b = 25
here a and b are two variable. And 12 and 25 are two strings 
that are stored in the variable. 
Now write 

1 print (a) 
2 print (b)
Now see Python a, b instead of b, a value of b or 
print string.
Now type the following program: 

1 a = 5 
2 b = 10 
3 c = a + b 
4 print ("a + b =", c)
Here I have given a, b and a variable c 
which add value to it. Then I 
asked to print that c variable. 
Write down the code and 
print the value of a + b in Python c . 
You can also write: 

1 a = 5 
2 b = 10 
3 c = a + b 
4 print (c)
If you want to take a number as a string, 
it will be written as before. But to 
pick any character, it 
must be written in "" . Eg: 

1 a = "apple" 2b 
= "orange" 
3 print (a) 
4 print (a + b)
AppleoRange has been printed on the watch screen. 
Now type: 

1 a = "apple" 2b 
= "orange" 
3 print (a * 5)
5 times apple printed. 
Python Input: The process that 
is stored with information from the user with the help of that 
input is called input. 
Python input is three types. 
1. Any character input, such as someone's name, 
email etc. 
Method: input ("enter your name here:") (Only for the 
alphabets) 
2. Any number (excluding decimal). Any 
password which is made up of numbers only. 
Method: int (input ("Enter your password here:")) 
3. Any number with dynamic. 
Method: float (input ("Enter your number:"))
Now let us create a little fun program 
that 
will find a man's death day according to your order: 

1 print ("Lets know when you will die") 
2 n = input ("Enter your name here:") 
3 a = float ( input ("Enter your age here:") 
4 c = 2075 - a 
5 print ("You will die at:", c, n) 
6 input ("Please give your feedback:")

Save it with .py Let's 
double click on it to run . 
Give inputs to the data well and see it as your death. 
Explanation: Here we primarily print ("Lets know 
when you will die") to give the user an idea 
about the program 
.
Then we 
know the username by n variable . 
A user has learned the age of a variable 
. 
Now we have created a variable called c, 
which we have ordered 
to subtract the value of a variable from 2075. And 
we printed it as n the death day. That is, our program will print its death date , 
because the age of the person is not inputable 
, or by subtracting that input from 2075 
. 
Then again we 
wanted to have user feedback and input through input . 
In this way, you have to create more 
small programs like yourself and continue to practice. 
To this day. If anyone 
can not understand anything then tell the comment.
👍  , , , , ,
properties (23)
post_id34,192,145
authorhumaira
permlinkpython-programming-part-02-variable-and-string-and-data-input-33d28ac332d27
categoryesteem
json_metadata"{"format": "markdown+html", "community": "esteem", "links": ["https://steemit.com/busy/@humaira/python-programming-part-01"], "app": "esteem/1.5.1", "tags": ["esteem", "esteemapp", "good-karma", "python-programming"], "image": ["https://img.esteem.ws/ba5p8gt4cp.jpg"]}"
created2018-02-21 08:25:45
last_update2018-02-21 08:25:45
depth0
children6
net_rshares46,315,952,574
last_payout2018-02-28 08:25:45
cashout_time1969-12-31 23:59:59
total_payout_value0.184 SBD
curator_payout_value0.053 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length3,321
author_reputation97,224,961,037
root_title"Python Programming [Part-02] :: Variable and String and Data Input."
beneficiaries
0.
accountesteemapp
weight1,000
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (6)
@gmadil ·
Thank you sir for giving the tutorial.  It will help all beginner programmers.
properties (22)
post_id34,195,388
authorgmadil
permlinkre-humaira-python-programming-part-02-variable-and-string-and-data-input-33d28ac332d27-20180221t084517405z
categoryesteem
json_metadata"{"app": "steemit/0.1", "tags": ["esteem"]}"
created2018-02-21 08:45:27
last_update2018-02-21 08:45:27
depth1
children0
net_rshares0
last_payout2018-02-28 08:45:27
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length78
author_reputation10,606,096,043
root_title"Python Programming [Part-02] :: Variable and String and Data Input."
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@skcbappy ·
Python is a powerful high-level, object-oriented programming language created by Guido van Rossum.
It has simple easy-to-use syntax, making it the perfect language for someone trying to learn computer programming for the first time.It has wide range of applications from Web development
properties (22)
post_id34,204,067
authorskcbappy
permlinkre-humaira-2018221t153716464z
categoryesteem
json_metadata"{"app": "esteem/1.5.1", "format": "markdown+html", "community": "esteem", "tags": ["esteem", "esteemapp", "good-karma", "python-programming"]}"
created2018-02-21 09:37:21
last_update2018-02-21 09:37:21
depth1
children1
net_rshares0
last_payout2018-02-28 09:37:21
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length286
author_reputation155,676,200,050
root_title"Python Programming [Part-02] :: Variable and String and Data Input."
beneficiaries
0.
accountesteemapp
weight1,000
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@humaira ·
yes
properties (22)
post_id34,208,829
authorhumaira
permlinkre-skcbappy-re-humaira-2018221t153716464z-20180221t100509479z
categoryesteem
json_metadata"{"app": "steemit/0.1", "tags": ["esteem"]}"
created2018-02-21 10:05:15
last_update2018-02-21 10:05:15
depth2
children0
net_rshares0
last_payout2018-02-28 10:05:15
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length3
author_reputation97,224,961,037
root_title"Python Programming [Part-02] :: Variable and String and Data Input."
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@drotto ·
<p>This post has received a 0.15 % upvote from @drotto thanks to: @dihan.</p>
properties (22)
post_id34,248,861
authordrotto
permlinkre-humaira-python-programming-part-02-variable-and-string-and-data-input-33d28ac332d27-20180221t135319322z
categoryesteem
json_metadata"{"app": "drotto/0.0.3rc3", "tags": ["esteem"]}"
created2018-02-21 13:53:18
last_update2018-02-21 13:53:18
depth1
children0
net_rshares0
last_payout2018-02-28 13:53:18
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length78
author_reputation424,402,347,817
root_title"Python Programming [Part-02] :: Variable and String and Data Input."
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@minnowsupport ·
<p>Congratulations!  This post has been upvoted from the communal account, @minnowsupport, by Reja83 from the Minnow Support Project. It's a witness project run by aggroed, ausbitbank, teamsteem, theprophet0, someguy123, neoxian, followbtcnews, and netuoso. The goal is to help Steemit grow by supporting Minnows.  Please find us at the <a href="https://discord.gg/HYj4yvw"> Peace, Abundance, and Liberty Network (PALnet) Discord Channel</a>.  It's a completely public and open space to all members of the Steemit community who voluntarily choose to be there.</p> <p>If you would like to delegate to the Minnow Support Project you can do so by clicking on the following links: <a href="https://v2.steemconnect.com/sign/delegateVestingShares?delegator=&amp;delegatee=minnowsupport&amp;vesting_shares=102530.639667%20VESTS">50SP</a>, <a href="https://v2.steemconnect.com/sign/delegateVestingShares?delegator=&amp;delegatee=minnowsupport&amp;vesting_shares=205303.639667%20VESTS">100SP</a>, <a href="https://v2.steemconnect.com/sign/delegateVestingShares?delegator=&amp;delegatee=minnowsupport&amp;vesting_shares=514303.639667%20VESTS">250SP</a>, <a href="https://v2.steemconnect.com/sign/delegateVestingShares?delegator=&amp;delegatee=minnowsupport&amp;vesting_shares=1025303.639667%20VESTS">500SP</a>, <a href="https://v2.steemconnect.com/sign/delegateVestingShares?delegator=&amp;delegatee=minnowsupport&amp;vesting_shares=2053030.639667%20VESTS">1000SP</a>, <a href="https://v2.steemconnect.com/sign/delegateVestingShares?delegator=&amp;delegatee=minnowsupport&amp;vesting_shares=10253030.639667%20VESTS">5000SP</a>. <br><strong>Be sure to leave at least 50SP undelegated on your account.</strong></p>
properties (22)
post_id34,525,103
authorminnowsupport
permlinkre-python-programming-part-02-variable-and-string-and-data-input-33d28ac332d27-20180222t181810
categoryesteem
json_metadata{}
created2018-02-22 18:18:09
last_update2018-02-22 18:18:09
depth1
children0
net_rshares0
last_payout2018-03-01 18:18:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length1,702
author_reputation104,981,098,086,561
root_title"Python Programming [Part-02] :: Variable and String and Data Input."
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@earthnation-bot ·
Greetings! [I am a minnow exclusive bot that gives a 5X upvote!](https://steemit.com/earthnation/@earthnation-bot/my-name-is-earthnation-supportbot-i-am-here-to-serve-all-minnows-of-steem) I recommend [this amazing guide](https://steemit.com/earthnation/@earthnation/introducing-a-simple-tutorial-for-earning-a-significant-income-on-steemit-the-steemit-minnows-guide-to-becoming-a-dolphin) on how to be a steemit rockstar!  I was made by @EarthNation to make Steemit easier and more rewarding for minnows.   <center><a href="https://earthnation.world"><img src="https://steemitimages.com/DQmU5vVxrRXVuvvwDfbTqjB6R2ew3QQFWq4ihVcCtfy94oS/earthnationlogosmall.png"/></a></center><center></center> Requested by @humaira
properties (22)
post_id34,965,133
authorearthnation-bot
permlinkre-humaira-python-programming-part-02-variable-and-string-and-data-input-33d28ac332d27-20180224t194404844z
categoryesteem
json_metadata"{"app": "steembot/0.7.0"}"
created2018-02-24 19:44:06
last_update2018-02-24 19:44:06
depth1
children0
net_rshares0
last_payout2018-03-03 19:44:06
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length715
author_reputation3,649,406,340,175
root_title"Python Programming [Part-02] :: Variable and String and Data Input."
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000