Search results for 'My'
-
CYB/130 Week 3 Python LAB 4.15: Password modifier
Regular Price: $8.00
Special Price $3.00
CYB/130 Week 3 Python LAB 4.15: Password modifier
Many user-created passwords are simple and easy to guess. Write a program that takes a simple password and makes it stronger by replacing characters using the key below, and by appending "q*s" to the end of the input string.
i becomes !
a becomes @
m becomes M
B becomes 8
o becomes .Ex: If the input is:
mypassword
the output is:
Myp@ssw.rdq*sHint: Python strings are immutable, but support string concatenation. Store and build the stronger password in the given password variable.
Learn More -
CYB/130 Week 4 Python LAB 5.24: Even/odd values in a list
Regular Price: $8.00
Special Price $3.00
CYB/130 Week 4 Python LAB 5.24: Even/odd values in a list
Write a program that reads a list of integers, and outputs whether the list contains all even numbers, odd numbers, or neither. The input begins with an integer indicating the number of integers that follow.Ex: If the input is:
5
2
4
6
8
10
the output is:
all evenEx: If the input is:
5
1
3
5
7
9
the output is:
all oddEx: If the input is:
5
1
2
3
4
5
the output is:
not even or oddYour program must define and call the following two functions. is_list_even() returns true if all integers in the list are even and false otherwise. is_list_odd() returns true if all integers in the list are odd and false otherwise.
Learn More
def is_list_even(my_list)
def is_list_odd(my_list) -
CIS115 Course Project Guess The Number
Regular Price: $15.00
Special Price $12.00
CIS115 Course Project Guess The Number
You will create a program that will ask the user to guess a number between 1 and 10. The pseudocode is below. Be sure to import random at the beginning of your code and use a comment block explaining what your program does
#Guess the number week 4
#Name:
#Date:
#Random number, loop while true
#ask user for number.
#if number is too high or too low, tell user, if they guessed it break out of loopDisplay "Welcome to my Guess the number program!"
random mynumber
while True
Display "Guess a number between 1 and 10"
Get guess
if (guess<mynumber)
Display "Too low"
else if (guess>mynumber)
Display "Too high"
else if (guess==mynumber)
Display "You guessed it!"When you run your program the result should be something like this:
Welcome to my Guess the number program!Please guess a number between 1 and 10: 5
Too high
Please guess a number between 1 and 10: 4
Too high
Please guess a number between 1 and 10: 3
Too high
Please guess a number between 1 and 10: 2
You guessed it!Be sure to submit your assignment
Learn More