• API
• FAQ
• Tools
• Archive
SHARE
TWEET # Untitled a guest Apr 23rd, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
1. # for x in range(4):
2. #   print("hello")
3. # print("")
4. # for x in [0,1,2,3]:
5. #   print(x)
6. # print("")
7. # for x in [5,6,1,2]:
8. #   print(x)
9.
10. # Write a function that takes in a string, and prints the string 10 times.
11. # OR create a variable to hold a string, and print that string 10 times.
12.
13. # def input_string():
14. #   x= input("Give me a string: ")
15. #   return x
16.
17. # user_input = input_string()
18. # print(user_input)
19.
20. # for y in range(10):
21. #   print(user_input)
22.
23.
24. # # x="hello"
25. # # for x in range (10):
26. # #   print(x)
27.
28. # # for x in range(10):
29. # #   print("hello")
30.
31. # x="hi"
32. # for y in range(10):
33. #   print(x)
34.
35. # Write a function that takes in a number, N, and a string, and prints that string N times.
36. # OR create a variable to hold a number, N, and print a string N times.
37.
38.
39.
40. x=7
41. print(x)
42.
43. for y in range(x):
44.   print("jelly")
45.
46. # Write a function that takes in a list of numbers, returns True if all numbers are less than 10, and returns False otherwise.
47. # OR create a variable to hold a list of numbers. Print True if all the numbers are less than 10, print False otherwise.
48.
49. # Write a function that takes in a list of numbers, and returns the sum of those numbers.
50. # OR create a variable to hold a list of numbers. Calculate the sum of those numbers.
51.
52. # Write a function that takes in a list of numbers, returns True if all the numbers are integers, and returns False otherwise.
53. # OR create a variable to hold a list of numbers. Print True if all the numbers are integers, print False otherwise.
54.
55. # Write a function that takes in a list of numbers, returns True if all the numbers are even, and returns False otherwise.
56. # OR create a variable to hold a list of numbers. Print True if all the numbers are even, print False otherwise.
57.
58. # Write a function that takes in a list of numbers. For each number, print True if it is even, print False otherwise.
59. # OR create a variable to hold a list of numbers. For each number, print True if it is even, print False otherwise.
60.
61. # Write a function that takes in a number, and prints all numbers up to and including that number if they are even.
62. # OR create a variable that holds a number. Print all numbers up to and including that number if they are even.
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy.

Top