import random
def random_number_file_writer(nums):
f = open("random.txt", "w")
i = 0
while i < nums:
f.write(str(random.randint(1,500))+"\n")
i += 1
f.close()
def random_number_file_reader():
f = open("random.txt", "r")
total = 0
count = 0
for x in f.readlines():
total += int(x)
count += 1
print("The total of the numbers is "+str(total))
print("The number of random numbers read from the file is "+str(count))
def main():
random_number_file_writer(int(input("How many random numbers do you want to generate? ")))
random_number_file_reader()
main()
I hope this helps!
Answer:
E) all of the above
Explanation:
Your device can track your location, which means that it will tell where you've been. When you post on social media or just online, you are sharing what you're thinking. Your friends and family can easily be traced back to you, so they know who your friends and family are, and we leave evidence of what we've done because whatever you click gets tracked. hope this helps :)
Answer:
Option A => cannot be used to search an array that is not sorted
Explanation:
The reason for choosing ‘option a’ is that, the actual working mechanism of binary search is to sort the array first then choose a middle element and compare the given search element with the help of middle element. Let us deeply understand how this sorting and choosing middle element does the work of search.
So this middle element is the key pointer which tells the system that the matching element might be present either to the list of values which are less than middle element or it would be present in the right side / greater than middle element. So, it would search only in the list satisfying the middle element. So it is always necessary to sort the element.
Obviously you have access to any sort of device.
click on your internet and click more info:
your IP address will be stated clearly, for example as 666<span>.666.6.666</span>
MySQL is a relational database management system based on the structured query language, JavaScript, Ruby and Python are programming languages used largely in web development.
<h3>What is MySQL?</h3>
It is a system that allows database management, that is, it is a database query language that is used to define relational database structures.
<h3>Characteristics of MySQL</h3>
- The system works on the client-server principle, where the server represents the actual database management system and is responsible for storing and distributing the data.
- It can be used on Windows, Linux, Unix and some other operating systems.
Therefore, we can conclude that MySQL is a relational database management system based on the structured query language, JavaScript, Ruby and Python are programming languages used largely in web development.
Learn more about MySQL here: brainly.com/question/4964005