current_hour = 12
current_minute = 37
current_section = "AM"
due_hour = 9
due_minute = 0
due_section = "AM"
#You may modify the lines of code above, but don't move
them!
#When you Submit your code, we'll change these lines to
#assign different values to the variables.
#Given the current time and deadline time represented by
the
#variables above, determine if an assignment is still
eligible
#for submission. An assignment is eligible if the time
#represented by current_hour, current_minute, and
#current_section is before the time represented by due_hour,
#due_minute, and due_section.
#Add your code here!
current_hour = 12
current_minute = 37
current_section = "AM"
due_hour = 9
due_minute = 0
due_section = "AM"
# You may modify the lines of code above, but don't move them!
# When you Submit your code, we'll change these lines to
# assign different values to the variables.
# Given the current time and deadline time represented by the
# variables above, determine if an assignment is still eligible
# for submission. An assignment is eligible if the time
# represented by current_hour, current_minute, and
# current_section is before the time represented by due_hour,
# due_minute, and due_section.
total_due_hours = due_hour
if due_section != "AM":
total_due_hours += 12
total_due_minutes = total_due_hours*60 + due_minute
total_current_hours = current_hour
if current_section != "AM":
total_current_hours += 12
total_current_minutes = total_current_hours*60 + current_minute
print(total_current_minutes < total_due_minutes) # Prints True for eligible and False for non-eligible.
current_hour = 12 current_minute = 37 current_section = "AM" due_hour = 9 due_minute = 0 due_section...
Having some trouble with this python question. An answer would be greatly appreciated! minimum = 5 maximum = 14 even = True #You may modify the lines of code above, but don't move them! #When you Submit your code, we'll change these lines to #assign different values to the variables. # #Write a loop (we suggest a for loop) that prints the numbers #from minimum to maximum, including minimum and maximum #themselves. If even is True, print only the even...
Create a new program in Mu and save it as ps3.3.1.py and take the code below and fix it as indicated in the comments: mystery_int = 50 # You may modify the lines of code above, but don't move them! # When you Submit your code, it should work with # different values for the variables. # Write a for loop that prints every third number from 1 to # mystery_int inclusive (meaning that if mystery_int is 7, it #...
Create a new program in Mu and save it as ps3.2.1.py and take the code below and fix it as indicated in the comments: hour = 3 minute = 45 # You may modify the lines of code above, but don't move them! # When you Submit your code, we'll change these lines to # assign different values to the variables. # Around Georgia Tech, there are plenty of places to get a # late night bite to eat. However,...
Create a new program in Mu and save it as ps2.4.3.py Take the code below and fix it as indicated in the comments: Level = 50 Attack = 125 Defense = 110 Power = 60 Modifier = 1 # You may modify the lines of code above, but don't move them! # Your code should work with different values for the variables. # In the Pokemon game franchise, damage is calculated using this formula found here: # https://bulbapedia.bulbagarden.net/wiki/Damage # #...
3.2.6 0ל Y ו PasswordCheck.py entered 2 passWOrd 3 tries = 3 abc123" abc123" 4 5#You may modify the 1ines of code above, but don't move them! 6 #When you Submit you code, we 11 change these lines to 7 #assign different values to the variables. 9 #Above we've Created three variables representing an attempt 10#to enter a password. 11 #result of this check: 12 # 13 # Add some code below that will print the Login successful." if entered...
Create a new program in Mu and save it as ps3.2.2.py and take the code below and fix it as indicated in the comments: egg = True milk = True butter = True flour = True # You may modify the lines of code above, but don't move them! # When you Submit your code, we'll change these lines to # assign different values to the variables. # Imagine you're deciding what you want to cook. The boolean # variables...
python math operator help
Coding Problem 2.4.7 (Advanced) (External resource) (1.0 points possible) CoughSyrup.py Submit tRun G Grades Reset I dosage 100 Console output will be displayed here 2 time since last dose 7 3 is nighttimeFalse 4 took_something_cross_reactiveFalse 5 6#You may modify the lines of code above, but don't move them! 7 #When you submit your code, we'll change these lines to 8#assign different values to the variables. 10 #Let's try to use our mathematical operators and logical 111#operators...
Create a new program in Mu and save it as ps3.3.3.py and take the code below and fix it as indicated in the comments: mystery_int = 46 # You may modify the lines of code above, but don't move them! # When you Submit your code, it should work with # different values for the variables. # Use a while loop to create a countdown from mystery_int to # 0. Count down by 3s: if mystery_int is 46, then you...
Create a new program in Mu and save it as ps2.4.1.py Take the code below and fix it as indicated in the comments: dividend = 7 divisor = 3 # You may modify the lines of code above, but don't move them! # Your code should work with different values for the variables. # The variables above create a dividend and a divisor. Add # some code below that will print the quotient and remainder # of performing this operation....
Create a new program in Mu and save it as ps2.3.3.py Take the code below and fix it as indicated in the comments: busy = True hungry = False tired = True stressed = False # You may modify the lines of code above, but don't move them! # Your code should work with different values for the variables. # Logical operators get more complex when we start using them # with the results of other logical operators. So, let's...