import random
i = 1
while i <= 100:
print("#"+str(i)+": "+str(random.randint(1,100)), end=", ")
i+=1
print()
i = 1
while i <= 100:
print("#"+str(i)+": "+str(random.uniform(1,100)), end=", ")
i += 1
I hope this helps!
Answer:
It returns the lookup value located in a specific location.
Explanation:
Answer:
see explaination
Explanation:
import re
def emails(document):
"""
function to find email in given doc using regex
:param document:
:return: set of emails
"""
# regex for matching emails
pattern = r'[\w\.-]+at[\w\.-]+\.\w+'
# finding all emails
emails_in_doc = re.findall(pattern, document)
# returning set of emails
return set(emails_in_doc)
# Testing the above function
print(emails('random text ertatxyz.com yu\npopatxyz.com random another'))
b. data
c. label
d. legend
interfaces.
inheritance
polymorphism
Answer: Inheritance
Explanation: Inheritance is the feature that is displayed by the class where it happens to acquire the properties of the other classes and exhibit it. the inheriting nature of the class is seen in two different categories -superclass and subclass. It is a concept that is usually followed in the object -oriented programming. The reason for the inheritance is to reuse the element and their properties of other class.
Answer:
PoLymORpHiSm Kid. Other kid is wrong mark me branliest. TRUST ME
Explanation:
;3
Answer:
The DoubleDecimalTest class is as follows:
using System;
class DoubleDecimalTest {
static void Main() {
double doubleNum = 173737388856632566321737373676D;
decimal decimalNum = 173737388856632566321737373676M;
Console.WriteLine(doubleNum);
Console.WriteLine(decimalNum); }}
Explanation:
Required
Program to test double and decimal variables in C#
This declares and initializes double variable doubleNum
double doubleNum = 173737388856632566321737373676D;
This declares and initializes double variable decimalNum (using the same value as doubleNum)
decimal decimalNum = 173737388856632566321737373676M;
This prints doubleNum
Console.WriteLine(doubleNum);
This prints decimalNum
Console.WriteLine(decimalNum);
Unless the decimal variable is commented out or the value is reduced to a reasonable range, the program will not compile without error.