Ask
your own question, for FREE!
Computer Science
50 Online
curriful:
For this exercise, I need to define and call the function printBusinessCard(). When called, this function should print out my name, job title (anything really), email address, and a tagline! ((I couldn't gind a 'Coding' subject for this..))
Still Need Help?
Join the QuestionCove community and study together with friends!
Aratox:
Yeah, coding goes under the "Computer Science" subject. Lemme see if I can solve your dillemma...
curriful:
Okay, good.. thanks btw.
@aratox wrote:
Yeah, coding goes under the "Computer Science" subject. Lemme see if I can solve your dillemma...
Aratox:
") print(f"Name: {name}") print(f"Job Title: {job_title}") print(f"Email: {email}") print(f"Tagline: {tagline}") print("
") # Business card function call printBusinessCard() ```
``` def printBusinessCard(): name = "your_name" job_title = "jobtitle" email = "email@example.com" tagline = "tagline" print("
") print(f"Name: {name}") print(f"Job Title: {job_title}") print(f"Email: {email}") print(f"Tagline: {tagline}") print("
") # Business card function call printBusinessCard() ```
Aratox:
You ARE using Python, correct?
curriful:
no.. its javascript
Still Need Help?
Join the QuestionCove community and study together with friends!
Aratox:
Oh, I'm sorry, I'll repurpose this code to fit your needs.
@curriful wrote:
no.. its javascript
curriful:
Oh, I'm sorry, I'll repurpose this code to fit your needs.
Thanks!
@aratox wrote:
@curriful wrote:
no.. its javascript
Aratox:
"); console.log("Name: " + name); console.log("Job Title: " + jobTitle); console.log("Email: " + email); console.log("Tagline: " + tagline); console.log("
"); } // Business card call function printBusinessCard(); ```
``` function printBusinessCard() { let name = "yourname"; let jobTitle = "jobtitle"; let email = "email@example.com"; let tagline = "tagline"; console.log("
"); console.log("Name: " + name); console.log("Job Title: " + jobTitle); console.log("Email: " + email); console.log("Tagline: " + tagline); console.log("
"); } // Business card call function printBusinessCard(); ```
curriful:
Thanks!
Aratox:
No problem, happy to help.
@curriful wrote:
Thanks!
Can't find your answer?
Make a FREE account and ask your own questions, OR help others and earn volunteer hours!
Join our real-time social learning platform and learn together with your friends!
Join our real-time social learning platform and learn together with your friends!
Latest Questions
Subshilava:
Ancient ammonites were mollusks that commonly became fossilized in marine sediment and show a continuous series of forms changing from uncoiled to coiled.
1 hour ago
0 Replies
0 Medals
Subshilava:
Certain disease-causing bacteria reproduce about every 20 minutes. Some strains of such bacteria have become resistant to antibiotics that previously inhibi
1 hour ago
4 Replies
1 Medal
Subshilava:
The formation of the state of Israel in 1948 simnifically altered the dynamics of the Middle East.
3 hours ago
0 Replies
0 Medals
Cheyyy:
What do you to to prepare yourself to run a mile in under 12 minutes
1 hour ago
40 Replies
4 Medals
L8RVAL:
Can someone help me make a schedule for working out and school? I really do need
5 hours ago
44 Replies
5 Medals
MakaylaChuck23:
Not to sound stupid but I've missed a lot of days of school and now I'm stuck wondering why a lot of carbon dioxide is in the air during bean sprout's cellu
7 hours ago
3 Replies
0 Medals