WAP to display square of an element if it is an integer and change the case if element is a string. List is received as argument which contains both numbers and strings
lakshyaanant70
Asked:
September 2023
Write Python statements to create the following lists: A list, named A, containing 3 numbers, and another list, named B, containing list A and another unnamed list of 3 integers.
lakshyaanant70
Asked:
September 2023
Perform the following conversions--- (show full conversion) 1. decimal 100 to binary 2. octal 77 to decimal 3. hexadecimal AB to binary 4. binary 1000 to decimal 5. decimal 25 to octal
lakshyaanant70
Asked:
September 2023
1)Differentiate Between: i. A[2] and A[2:] (Assuming that A is a list )ii. A[2::] and A[::2] (Assuming that A is a list)iii. A*3 and [A,A,A] (Assuming that A is a list)iv. A*3 and (A,A,A) (Assuming that A is a tuple)v. a,b=2,4 and a=b=2,4vi. a=(2) and a=(2,)
lakshyaanant70
Asked:
September 2023
Observe the following script and enlist all the tokens used in it. For each token, write its category too: #Identify tokens in the script name="Arjun" age=eval(input("Enter age: ")) print(name,"is",age,"years old")
how to write the IUPAC nomenclature of Y bond-line structure