With syntax and example explain how a function is defined in Python
2. Explain return values and return statements 3. Illustrate the keyword arguments for print() function 4. Demonstrate the concept of Local and Global Scope in functions with suitable examples 5. Explain the significance of the global statement 6. Explain indexing and negative indexing in strings and lists 7. Develop a program to generate Fibonacci sequence of length (N). Read N from the console. 8. Demonstrate with a suitable example how exceptions are handled in Python. 9. Write a function to calculate factorial of a number with and without recursion. 10. Explain print command in python with suitable example. 11. Develop a Python program to demonstrate different list methods 12. Distinguish between the remove() and pop() methods with code snippets. 13. Distinguish between the insert() and append() methods with code snippets. 14. Differentiate between the copy() and deepcopy() methods with code snippets. 15. Develop a python program to accept n numbers and store them in a list. Then print the list without ODD numbers in it. 16. Demonstrate the working of keys(),values() and items() methods with examples. 17. Explain the significance of References in Lists 18. Demonstrate the working of in and not in operator. 19. Explain how a cleaner display of the items in a dictionary can be achieved 20. Differentiate between Mutable and Immutable Data Types 21. Develop a program to read a message and create a dictionary of the characters in the message as keys and their count as values. 22. Explain the working of get() method 23. Explain the working of setdefault() method in dictionary datatype 24. Develop a program to illustrate nested dictionaries 25. Develop a program to create a dictionary of Names and birthdays by taking the input from the user. Display the birthdate of the person based on their Name. 26. Apply string justification methods to create a menu 27. Explicate Escape characters, raw string, multiline strings, and multiline comments with examples 28. Explain slicing in strings and lists 29. Demonstrate join() and split() methods on strings with examples 30. Read N numbers from the console and create a list. Develop a program to print mean, variance and standard deviation with suitable messages using functions. 31. Develop a python program to convert binary to decimal, octal to hexadecimal using functions. 32. Read a multi-digit number (as chars) from the console. Develop a program to print the frequency of each digit with suitable messages. 33. Write a function named DivExp which takes TWO parameters a, b and returns a value c (c=a/b). Write suitable assertion for a>0 in function DivExp and raise an exception for when b=0. Develop a suitable program which reads two values from the console and calls a function DivExp. 34. What is the difference between lists and tuples? 35. What are the different ways to remove values from a list? 36. What are the different ways to insert values into a list? 37. Explain how references are passed to functions 38. Illustrate Augmented Assignment Operators 39. Demonstrate the Multiple Assignment Trick 40. Demonstrate different isX String Methods 41. Explain Copying and Pasting Strings with the pyperclip Module 42. Demonstrate the working of strip(), rstrip(), and lstrip() 43. Given spam = ['cat', 'bat', 'rat', 'elephant'] Evaluate the following statements a. spam[0:4] b. spam[1:3] c. spam[0:-1] d. spam[:2] e. spam[1:] f. spam[:] 44. Given name = 'Zophie', Evaluate the following statements a. name[0] b. name[-2] c. name[0:4] d. 'z' in name e. name[7] = 'the'