my_str='Welcome to plus2net Python section'
output=my_str.upper()
print(output)
Output
WELCOME TO PLUS2NET PYTHON SECTION
my_str = ''
output = my_str.upper()
print(output) # Output: ''
Output:
''
my_str = 'Welcome to Plus2Net! @2023'
output = my_str.upper()
print(output) # Output: 'WELCOME TO PLUS2NET! @2023'
Output:
WELCOME TO PLUS2NET! @2023
user_input = input("Enter your name: ")
print(user_input.upper())
Output:
If input is 'john', output: 'JOHN'
All String methods lower() islower() isupper()
Author
🎥 Join me live on YouTubePassionate about coding and teaching, I publish practical tutorials on PHP, Python, JavaScript, SQL, and web development. My goal is to make learning simple, engaging, and project‑oriented with real examples and source code.