Ad
Code
Diff
  • class UserInfo: 
        def __init__(self, first_name, last_name, age, job, hobbies): 
            self.__dict__.update(locals())
            self.email = first_name + last_name + "@gmail.com"
        def full_name(self): return self.first_name + " " + self.last_name
    
    • class UserInfo:
    • def __init__(self, first_name, last_name, age, job, hobbies):
    • self.first_name = first_name
    • self.last_name = last_name
    • self.age = age
    • self.job = job
    • self.hobbies = hobbies
    • class UserInfo:
    • def __init__(self, first_name, last_name, age, job, hobbies):
    • self.__dict__.update(locals())
    • self.email = first_name + last_name + "@gmail.com"
    • def full_name(self):
    • return self.first_name + self.last_name
    • def full_name(self): return self.first_name + " " + self.last_name
Code
Diff
  • function reverseGear(word){
      if (str === "")
        return "";
      else
        return reverseString(str.substr(1)) + str.charAt(0);  
    }
    • function reverseGear(word){
    • //put your code here
    • if (str === "")
    • return "";
    • else
    • return reverseString(str.substr(1)) + str.charAt(0);
    • }