Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

upper method in python

greet = 'Hello Bob'
up1 = greet.upper()
# up2 = upper(greet) - This doesn't work
# print(up2) - Remember this will give you a Syntax Error
print(up1)			# Output: HELLO BOB
# Another thing, this will give us only a copy,
# Original string remains the same
print(greet)		# Hello Bob
Source by www.py4e.com #
 
PREVIOUS NEXT
Tagged: #upper #method #python
ADD COMMENT
Topic
Name
4+9 =