Application of input and output Python

Input the output of the main control print () and input () Application of two functions.

for console function output #print
  Print ( 'the I Love the Python.', 'IT So the I want to Learn.', 'the I Learn to belive the I IT CAN Well.')
  Print (200 is)
  Print (100 + 200 is)
  Print ( '= 100 + 200 is', 200 is 100 +)
#INPUT console input function for
  Print (' Account and the enter your password: ')
  Account = iNPUT ()
  password = iNPUT ()
  Print (' the Hello, ', Account,' . ',' Please Remember your password: ', password)
# this section exercise
# enter two numbers from the keyboard, four operations of these two numbers
# source code []
  print (' enter two number a and b: ')
  A = (int) (INPUT ())  # casts string type to integer
  b = (int) (input ( ))
  print('a+b=',a+b)
  print('a-b=',a-b)
  print('a*b=',a*b)
  print('a/b=',a/b)

[Screenshot] experiment

 

Guess you like

Origin www.cnblogs.com/sinlearn/p/10931346.html