What is output? >>>name=”ARTIFICIAL INTELLIGENCE” >>>print (“String after conversion:”, name.lower())
Answers
The output of the given program will be "artificial intelligence".
Explanation:
Python is a powerful high-level, object-oriented programming language. It was created by Guido van Rossum. It was launched on 1991. It can connect to the database system, it can also read and modify files.
The .lower() method takes no arguments and converts each capital letter to lowercase before returning lowercased strings from the provided string. If the given string has no capital characters, it returns the original string
Syntax:
>>> str.lower()
Here, the string was "ARTIFICIAL INTELLIGENCE" and stored as a variable named "name". The name.lower() method was used in the program. Hence, it converted all the uppercase letters to lowercase letter.
To learn about string slicing, refer to the link below.
- brainly.in/question/48725045?