Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

reading input doubt

tilakbalagangadhar@gmail.comtilakbalagangadhar@gmail.com hyderabadMember Posts: 1

how many ways we take input from the user in python

Comments

  • pankaj25pankaj25 MumbaiMember Posts: 3
    1. raw_input('') from user input

    2.command line
    print 'Number of arguments:', len(sys.argv), 'arguments.'
    print 'Argument List:', str(sys.argv)

    3.from UI
    from tkinter import *
    master = Tk()
    Label(master, text="First Name").grid(row=0)
    Label(master, text="Last Name").grid(row=1)

    e1 = Entry(master)
    e2 = Entry(master)

    there are other ways like from web browser input,database,files,pipes and http request etc..

Sign In or Register to comment.