Posted at 19:35h
in
Uncategorized
by admin
Question 1:
Write a program that asks the user to enter his/her name, age, favorite color, and favorite food. Have the program save all four items to a pickle file named info.pkl
Question 2:
Write a program to read all the information from info.pkl file and print out...
Posted at 19:30h
in
Uncategorized
by admin
Question 1:We was talking about stacks in the class, would you please modify the Stack class so the top of the stack would be the front of the list instead of the end of the list.
Question 2:Jack is trying to invent some new words from...
Question:
Make a class definition for a BankAccount. It should have attributes for :
- its name (a string),
- account number (a string or integer),
- and balance (a float).
It should have methods to:
- make deposits with displaying the balance,
- and make withdrawals with displaying the balance.
Hint:
...
Problem DescriptionJack is trying to invent some new words from old words. For every consonant (consonants are the letters except for a, e, i, o, u) in the old word is replaced by three letters, in the following order:
the consonant itself;
the vowel closest to the...
Posted at 04:27h
in
archives
by admin
Question 1:
A soccer team is looking for girls from ages 10 to 12 to play on their team. Write a program to ask the user’s age and if male or female (using “m” or “f”). Display a message indicating whether the person is eligible to play on the team.
Question...
Posted at 02:09h
in
Uncategorized
by admin
Question:
Write a Python program (either use function or object method) to check the validity of password input by users.
Validation :
At least 1 letter between [a-z] and 1 letter between[A-Z].
At least 1 number between [0-9].
At least 1 character from [$#@].
Minimum length 6 characters.
...