rylan8394 rylan8394
  • 01-02-2018
  • Computers and Technology
contestada

Given the variables name1 and name2, write a fragment of code that assigns the larger of their associated values to first.

Respuesta :

Kalahira
Kalahira Kalahira
  • 14-02-2018
We can compare strings like numbers,
 if "a" > "b":
   do something
   Solutions will be

   Python:
  first = max(name1, name2)
 second = min(name1, name2)

   Or if we are not supposed to use max() and min(), we can achieve the same thing with a conditional,
 Python:
  if name1 > name2: ...
Answer Link

Otras preguntas

hi folllow me at talfishmanfanpage09
what is 6,389 divided by 27
Instructions: Your friend Jo just texted you saying she’s planning to meet some guy she met online. You know this is a really dangerous idea. Write a convincing
Solve the equation. 1 1 ²x+3-2x = 4+²x+5 4 If necessary: Combine Terms Apply properties: Add Multiply To start over: Subtract Reset Divide​
HELP ME PLEASE WITH THIS MATH PROBLEM
what are your priorities? projects?​
How do you drown a blonde?
62. Triangle ABC has vertices as shown. What is the area of the triangle? A. √72 square units B. 12 square units C. √288 square units D. 24 square units A(1,4)
Assume the AC generator produce the signal voltage as two sine waves where v = C sin (50 +90)t use compound angle identities to combine individual sine waves in
Find the Slope Using the slope equation