Python: It's the Time to Disco!
t = ("disco", 12, 4.5)
t[0][2]
I Will Find You, Python. How will I extract Python from the nested list
input_list = [['SAS','R'],['Tableau','SQL'],['Python','Java']]
Sorted List: Consider the following list:
L = ['one','two','three', 'four', 'five', 'six']
print(sorted(L))
print (L)
Python: I Lost Everything!
word = ['1','2','3','4']
word[ : ] = [ ]
print(word)
Python: Consider the string given below and answer the following questions
string = "OQYWFClFhFGAvIWYwGKpmZhnJiyzTslSIhSwvOsqJMEphzmifTkyqOMNpnOtXZxmCfgDYqbaBHAUvIWhMnvwZnEMVDvmEfLrDoQnAZgQEgXQVnmSYkfedpAdhrtpOgORpYLRZYGWdhWYuqQssCUXtTzKRDAhpjUheOzUroZNzWFtZOVwIapzUYtbSbjYNErzQ"
Operations on Strings?!: The len() function in Python returns the length of the string when a string is passed as an argument.
For example, len(‘Python’) would return an integer value 6.
With this in mind, what would be the output of the following code?
x = 'len'
x[len(x * 2) - 5]
Operator No. 1: Follow the operator precedence rule in Python and provide the output of the following expression:
4 % (1 + 9)**2 - 60 // (7 + 2)