Write and demonstrate a Lambda function named stg() that appends .txt to its argument. What happens when you call the function with an integer?
What will be an ideal response?
>>> stg = lambda b: b + '.txt'
>>> stg('aaa')
'aaa.txt'
When called with an integer, the function returns an error when it tries to
catenate an integer and a string:
TypeError: unsupported operand type(s) for +: 'int' and 'str'
You might also like to view...
_____ is a set of integrated programs that manage a company's vital business operations for an entire organization; even a complex, multi-site, global organization.
Fill in the blank(s) with the appropriate word(s).
In UNIX/Linux, a mapped drive is called a ____ volume.
A. logical B. mounted C. virtual D. partitioned
The code below adds an OnClick ____.
A. attribute B. behavior C. style D. event
In which RAID configuration do two or more disk drives become one large volume, so the computer views the disks as a single disk?
a. RAID 0 b. RAID 1 c. RAID 5 d. RAID 6