Skip to content
  • Tutorials
    • c programming
      • libraries
    • c++
    • Linux
    • Python
    • batch programming
    • Technology
  • IDE
  • Tools
how to convert input to uppercase in python 1

how to convert input to uppercase in python

May 11, 2022 by Anurag batra
string = str(input("Your name:- ")).upper()
print(string)

Here is what the above code is Doing:
1. It’s taking input from the user and storing it in a variable called string.
2. It’s converting the input to upper case.
3. It’s printing the input.

Categories Python Examples
Post navigation
python split dict into chunks
python convert object into ditct
© MyEduKit - 2022 . All Rights Reserved.