Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- import random
- var = 55
- print(var)
- def findTheOutput(inputString, inputList, inputTuple):
- # Easy
- var = "Test"
- string1 = "\"\\\"\n\"\\\""
- int1 = int(math.pow(3, 2) // 2 ** 2)
- float1 = 7E-2
- string2 = str(float1) + str(int(float1))
- string3 = string2
- string3 *= int1
- output = """{}
- {}
- {}
- {}
- """.format(string1, string3, string1, var)
- a, b, c = inputTuple
- print(a * int(c) + b)
- # Hard
- output += "The current length of the variable inputString is " + str(len(inputString))
- inputString = inputString[-10:12:2][::-1] + "ecabd"[2]
- output += "\n{:*^20s}\n".format(inputString)
- for c in inputString:
- if c != "*":
- output += c.upper()
- output = output + "\n"
- if not(not(True or False) or True == True and output > inputString or True < False):
- output += str(bool(True -1))
- if str(0.0) in string3 and "i".upper() in inputList[4]:
- output += str(bool(False +1))
- inputList[1] = int(str(inputList[1])[::-1]) # 69
- inputList[4].remove("t")
- inputList[4].extend(["S", "T"])
- inputList.pop(2)
- inputList[3] *= inputList[0].count("i") + (inputList.index(0) - 2)
- inputList = inputList + ["Te", "st"]
- inputList.pop(0)
- inputList[1] = not inputList[1]
- print(inputList)
- # Ah finally done!
- return output
- def main():
- toOutput = "A random string"
- toOutList = ["StringThing", 96, 6E9, False, ["L", "I", "s", "t"]]
- toOutTuple = ("One", "Two", "3")
- print(toOutList)
- print(findTheOutput(toOutput, toOutList, toOutTuple))
- print(toOutput)
- print(toOutList)
- main()
- print(var)
Add Comment
Please, Sign In to add comment