The first Python program simple addition calculator

Source: Internet
Author: User

#-*-coding:utf-8-*-# Get user input first_num = raw_input (' Plesea your first num: ') # Print user First numprint "Your first num is%r  . "% first_num# get user input second_num = raw_input (' Plesea your second num: ') # Print user Second Numprint" Your second num is%r. " % second_num# print two times input num sum print "Enter the sum you twice%r."% (int (first_num) + int (second_num))


650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/6F/B1/wKiom1WlGPPg25kPAAJ1Oid4xlA129.jpg "title=" Qq20150714221203.jpg "alt=" Wkiom1wlgppg25kpaaj1oid4xla129.jpg "/>

This article is from the "Attitude decides everything" blog, please make sure to keep this source http://sangh.blog.51cto.com/6892345/1674239

The first Python program simple addition calculator

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.