A transformer will either step up or down to the necassary voltage using a core wrapped in a coil of wires.
Option + 1
-----------------------------
A contact list is different from an address book because your constancy list consist of people whom you know and choose to communicate with, while the address book gives you a list of the community’s residents phone numbers.
Answer:
- To get the items of a dictionary and print them as a string, use the items() method to unpack the keys and values in a for and print or write them into a file.
for key, value in mydict.items():
print(f"{key}, {value}")
- To convert string from user input into dictionary;
mystring = input().split(" ") #assuming the words are separated by a space.
from word in mystring:
mydict[word] = mydict.get(word, 0) + 1
This would use the words in the string as the keys of the dictionary and the count of each word as the respective values.
Explanation:
A dictionary is a data structure in python used to store data in key-value pairs. The items are enclosed in curly braces and can be accessed with the key in dot or bracket notation.
Answer:
if 3 + 3 == 6:
print("Hey 3 and 3 is 6")
if 5 + 3 == 8:
print("You are not going to catch me")
if 5 + 6 == 10:
print("****nag*****")
else:
print("You thought like 5 + 6 = 11 ")
if 6 + 6 == 12:
print("Great! This one is correct")
if 5 + 7 == 12:
print("Great, this is correct as well")
if 3 + 3 == 4 and 5 + 5 == 10:
print("Great! Congrats")
Explanation:
Please check the answer, and practice if else and various other ladders as much as you can.