Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Putting it All Together In this section, we are going to level up what we can do with functions! So far, you have practiced writing
Putting it All Together
In this section, we are going to level up what we can do with functions!
So far, you have practiced writing functions with different kinds of inputs, outputs, and default values, but now we will to explore ways of building more complex but still compartmentalized and transferable code by combining functions.
One particularly useful way to build more complex code is to have functions that call other functions inside them.
When we call a function inside another function, remember to keep in mind variable scope. Any variables the function you are calling inside another function needs will need to be provided as input arguments in your outer function!
In the cell below, write a function that combines your concatenatestrings and checkfrstrings functions to:
Take in values
Check if those values are strings
If all three are strings, concatenate those strings into one new string
Return the new concatenated string
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started