Python Forum
getting variables from an user input on python - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: getting variables from an user input on python (/thread-10743.html)



getting variables from an user input on python - iskander - Jun-04-2018

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