Answer:
44%
Explanation: First, you have to divided 11 by 25. Which is 0.44. And then you multiply the quotient by 100 to get your percentage.
Answer:
I am writing a Python program that deletes players from the file whose names whose names do not begin with a vowel which means their names begin with a consonant instead. Since the SomePlayers.txt is not provided so i am creating this file. You can simply use this program on your own file.
fileobj= open('SomePlayers.txt', 'r')
player_names=[name.rstrip() for name in fileobj]
fileobj.close()
vowels = ('a', 'e', 'i', 'o', 'u','A','E','I','O','U')
player_names=[name for name in player_names
if name[0] in vowels]
fileobj.close()
print(player_names)
Explanation:
I will explain the program line by line.
First SomePlayers.txt is opened in r mode which is read mode using open() method. fileobj is the name of the file object created to access or manipulate the SomePlayers.txt file. Next a for loop is used to move through each string in the text file and rstrip() method is used to remove white spaces from the text file and stores the names in player_names. Next the file is closed using close() method. Next vowels holds the list of characters which are vowels including both the upper and lower case vowels.
player_names=[name for name in player_names
if name[0] in vowels]
This is the main line of the code. The for loop traverses through every name string in the text file SomePlayers.txt which was first stored in player_names when rstrip() method was used. Now the IF condition checks the first character of each name string. [0] is the index position of the first character of each players name. So the if condition checks if the first character of the name is a vowel or not. in keyword is used here to check if the vowel is included in the first character of every name in the file. This will separate all the names that begins with a vowel and stores in the list player_names. At the end the print statement print(player_names) displays all the names included in the player_names which begin with a vowel hence removing all those names do not begin with a vowel.
Answer:
1.Use passwords that can't be easily guessed, and protect your passwords.
2.Minimize storage of sensitive information.
3.Beware of scams.
4.Protect information when using the Internet and email.
5.Make sure your computer is protected with anti-virus and all necessary 6.security "patches" and updates.
7.Secure laptop computers and mobile devices at all times: Lock them up or carry them with you.
8.Shut down, lock, log off, or put your computer and other devices to sleep before leaving them unattended, and make sure they require a secure password to start up or wake-up.
9.Don't install or download unknown or unsolicited programs/apps.
Secure your area before leaving it unattended.
10.Make backup copies of files or data you are not willing to lose.
Explanation:
Answer:
One benefit of pointers is when you use them in function arguments, you don't need to copy large chunks of memory around, and you can also change the state by dereferencing the pointer. For example, you may have a huge struct MyStruct, and you have a function a ().
Explanation:
Answer:
.edu websites are for educational institution
Explanation:
The suffix of web addresses are referred to as the domains of the web address and there are quite a number of then.
However, when a web address has the domain .edu, its primary purpose is that the website is used for educational purposes even though non educational institutions can also make use of it.
In fact, .edu is an acronym for education.
So let's say for instance, the address of a website is m y w e b s i t e . e d u. What this implies is that the website is basically used for educational purposes