aboutMe.js
let loveToDo = "Problem solving";
let likeToDo = "Swimming";
let mostlyDo = "Play Chess";
function getHobbies() {
return `loveToDo: ${loveToDo}, likeToDo: ${likeToDo}, mostlyDo: ${mostlyDo}`;
}
function getInterestsInFuture() {
return `Excited and enthusiastically advancing towards AI.`;
}
function getPastProgrammingActivities() {
return `Have worked on a lot of projects, freelanced, and solved problems using JavaScript.`;
}
function aboutMe() {
console.log(getHobbies());
console.log(getInterestsInFuture());
console.log(getPastProgrammingActivities());
}
aboutMe()
about_me.py
love_to_do = "Problem solving"
like_to_do = "Swimming"
mostly_do = "Play Chess"
def get_hobbies():
return f"loveToDo: {love_to_do}, likeToDo: {like_to_do}, mostlyDo: {mostly_do}"
def get_interests_in_future():
return "Excited and enthusiastically advancing towards AI."
def get_past_programming_activities():
return "Have worked on a lot of projects, freelanced, and solved problems using JavaScript."
def about_me():
print(get_hobbies())
print(get_interests_in_future())
print(get_past_programming_activities())
about_me()