Answer:
In python Language:
cardNotation = raw_input("Enter card notation: ")
# Create a dict for values
cardColors = {"D": "Diamonds",
"H": "Hearts",
"S": "Spades",
"C": "Clubs"}
cardNumberValues = {"A": "Ace",
"J": "Jack",
"Q": "Queen",
"K": "King",
"2": "Two",
"3": "Three",
"4": "Four",
"5": "Five",
"6": "Six",
"7": "Seven",
"8": "Eight",
"9": "Nine",
"10": "Ten"}
# Handle cases when 10 comes in input
if len(cardNotation) == 3:
number = cardNotation[:2]
color = cardNotation[2:]
print cardNumberValues.get(number) + " of " + cardColors.get(color)
elif len(cardNotation) == 2:
number = cardNotation[:1]
color = cardNotation[1:]
print cardNumberValues.get(number) + " of " + cardColors.get(color)
else:
print "INVALID VALUE"
Cloud computing allows for large chunks of data to be stored in data centers with owners having the ability to access stored information from any devices or location using their login credentials ensuring information are safe, secure and available over a an infinitely long period of time.
- Sustainability involves keeping hold of something over a very long period of time.
- When data or information are saved on online data centers which is made possible by cloud computing. Cloud computing ensures that data isn't saved on an individual's personal memory storage such as local hard drive or memory Cards where it could be lost at anytime.
- Data is stored online in data centers where it can be accessed over a very long period of time.
Therefore, the ability to get hold of time long information is an essential and important sustainability benefit offered by cloud computing.
Learn more :brainly.com/question/24875533
Answer:
Boolean Values
Explanation:
Boolean Values are used as return values for functions to check whether something is true or false.
Hexadecimal numbers it is technique of representing numbers whose base value is 16.
The common use of Hexadecimal numbers are:
- To define memory locations .
- To define colors in web Pages .
- To represent error message.
- To represent MAC address