Aug-23-2018, 02:03 PM
Hi Python Mentors,
This task is using "Class" with User Input in a sign up form online. The code is running but I would like a code review from anyone. Please be honest and constructive with your feedback as this will really help me learn and improve my current code below. Thank you in advance.
[Image: 01_zpsw1sjpgpw.png]
This task is using "Class" with User Input in a sign up form online. The code is running but I would like a code review from anyone. Please be honest and constructive with your feedback as this will really help me learn and improve my current code below. Thank you in advance.
class Studentform: def __init__(self, fname, lname, email, ccode, mobile, github, country, identity, want, codelevel, subs, like): self.fname = fname self.lname = lname self.email = email self.ccode = ccode self.mobile = mobile self.github = github self.country = country self.identity = identity self.want = want self.codelevel = codelevel self.subs = subs self.like = like @classmethod def input(cls): return cls( input("First Name: \n"), input("Last Name: \n"), input("Email: \n"), int(input("Country code: \n")), int(input("Phone number: \n")), input("Github profile: \n"), input("Country: \n"), input("Identity (Woman/Non Binary/Man): \n"), input("I want to (Find my next job/Become a freelancer/Start my own tech startup): \n"), input("My coding level is (Beginner/Intermediate/Advanced): \n"), input("I want to subscribe to and join the following groups (Student/Working/Job seeking/Entrepreneur/Mom/Single Mom/Non-Binary/Trans/Retired/Career changer): \n"), input("I would also like to (Volunteer/Mentor/Hire): \n") ) user = Studentform.input()[Image: 02_zpspnqlxoos.png]
[Image: 01_zpsw1sjpgpw.png]