Answer:
The program is as follows:
word = input("Enter a word: ")
if word:
if len(word) <= 4:
word = word[::-1]
else:
word = word[0]+word[1]+word[-2]+word[-1]
print(word)
else:
print('empty!')
Explanation:
This gets input for word from the user
word = input("Enter a word: ")
If input is not empty
if word:
This checks if the length is less than or equal to 4 characters
if len(word) <= 4:
If yes, this reverses the word
word = word[::-1]
If otherwise,
else:
This gets the first, second, second to last two characters
word = word[0]+word[1]+word[-2]+word[-1]
Print the new string
print(word)
Print empty, if input is empty
<em>else:
</em>
<em> print('empty!')</em>
in c++
...
for(auto& el:hourlyTemp){
std::cout<<el<<", ";
}
...
This is called Range-based loop or for each loop
The application andy wants to use is adobe photoshop
<h2>
Answer:</h2><h3>Hacktivist group is most likely to responsible for this.</h3><h3 /><h2>
Explanation:</h2>
Hacktivism is defined as an action in which a computer or a network is targeted so that it could be misused in order to achieve a goal against any social or political action.
Hacktivists are the persons who perform hacktivism in order to seek attention on a specific thing or issue they want, from all the people.
In the given scenario, the hacking attack is hactivism as it is done to pull the company down.
Hacktivist can be a single person as well as a group of people working together. However they try to work anonymously so that they could not be traced.
<h3>I hope it will help you! </h3>
Answer:
A Python data type is weakly typed.
A Python data type can have numeric values.
A Python data type can be shown by keys and values within brackets [ ].
A Python data type can be a string, a list, or a tuple with items that can be repeated using the asterisk ( * ).
A Python data type can be a dictionary that can be updated, changed, or removed.
Aka A B C E F