Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- user_name = input("Enter Your Name: ");
- print("Hello", user_name);
- #########################################
- loop_count = int(input("Enter How Many Loops: "));
- for i in range(1, loop_count):
- print(i, "\n");
- ###########################################
- def oddOrEven(num):
- remainder = num % 2;
- if remainder == 0:
- print(num, "is even");
- else:
- print(num, "is odd");
- user_num = int(input("Enter Value to Check: "));
- oddOrEven(user_num);
- ##############################################
- user_array = [None];
- ray_size = int(input("Enter Array Size: "));
- user_array = [None] * ray_size;
- for i in range(0, ray_size):
- name = input("Enter Name: ");
- user_array[i - 1] = name;
- for i in range(0, ray_size):
- print(user_array[i - 1]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement