- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to change all the function arguments to lowercase in Python?
The following code will convert the given function arguments to lowercase.
Example
#program to print lowercase of the list of function arguments import inspect def foo(ARG1, ARG2): pass list1 = inspect.getargspec(foo)[0] list1 =[item.lower() for item in list1] print list1
Output
['arg1', 'arg2']
- Related Articles
- How to convert all uppercase letters in string to lowercase in Python?
- How to pass arguments by value in Python function?
- How to pass arguments by reference in Python function?
- How to pass arguments by reference in a Python function?
- How to use variable-length arguments in a function in Python?
- How to convert all the records in a MySQL table from uppercase to lowercase?
- How to pass arrays as function arguments in JavaScript?
- How to use unlimited arguments in a JavaScript function?
- What MySQL COALESCE() function returns if all the arguments provided to it are NULL?
- How to invoke a function with partials appended to the arguments in JavaScript?
- How to use variable number of arguments to function in JavaScript?
- How to convert lowercase letters in string to uppercase in Python?
- How to convert Python dictionary keys/values to lowercase?
- How to add command line arguments in Python?
- How to pass the individual members as arguments to function using structure elements?

Advertisements