Python Programming - Functions - Discussion
Discussion Forum : Functions - General Questions (Q.No. 79)
79.
How can you define a generator function that yields squares of numbers up to a given limit?
Answer: Option
Explanation:
The correct definition for a generator function that yields squares of numbers up to a given limit is shown in option A.
Discussion:
Be the first person to comment on this question !
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers