Python Forum

Full Version: getting variables from an user input on python
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
how to get user input in variables for exemple :
user input :
[email protected]:password:year
resault:
        
name = ""  
domain = ""  
password = ""  
year =  
i tryed
    name = raw_input("name")
    domain = raw_input("domain")
put it take longe to fill and its not good i want to get input from a text file with this format and get it into variales to work with
i want to do this on python 2.7