Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # for x in range(4):
- # print("hello")
- # print("")
- # for x in [0,1,2,3]:
- # print(x)
- # print("")
- # for x in [5,6,1,2]:
- # print(x)
- # Write a function that takes in a string, and prints the string 10 times.
- # OR create a variable to hold a string, and print that string 10 times.
- # def input_string():
- # x= input("Give me a string: ")
- # return x
- # user_input = input_string()
- # print(user_input)
- # for y in range(10):
- # print(user_input)
- # # x="hello"
- # # for x in range (10):
- # # print(x)
- # # for x in range(10):
- # # print("hello")
- # x="hi"
- # for y in range(10):
- # print(x)
- # Write a function that takes in a number, N, and a string, and prints that string N times.
- # OR create a variable to hold a number, N, and print a string N times.
- x=7
- print(x)
- for y in range(x):
- print("jelly")
- # Write a function that takes in a list of numbers, returns True if all numbers are less than 10, and returns False otherwise.
- # OR create a variable to hold a list of numbers. Print True if all the numbers are less than 10, print False otherwise.
- # Write a function that takes in a list of numbers, and returns the sum of those numbers.
- # OR create a variable to hold a list of numbers. Calculate the sum of those numbers.
- # Write a function that takes in a list of numbers, returns True if all the numbers are integers, and returns False otherwise.
- # OR create a variable to hold a list of numbers. Print True if all the numbers are integers, print False otherwise.
- # Write a function that takes in a list of numbers, returns True if all the numbers are even, and returns False otherwise.
- # OR create a variable to hold a list of numbers. Print True if all the numbers are even, print False otherwise.
- # Write a function that takes in a list of numbers. For each number, print True if it is even, print False otherwise.
- # OR create a variable to hold a list of numbers. For each number, print True if it is even, print False otherwise.
- # Write a function that takes in a number, and prints all numbers up to and including that number if they are even.
- # OR create a variable that holds a number. Print all numbers up to and including that number if they are even.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement