## Solution Exercise 22

Exercise 22 Write a program in Python, which returns the first word of a given text. Example for the text: t = 'Python is a wonderful programming language', the program must return Python Solution # define a string ss = "Learning Python in my-course.net"# initialize the first word at empty stringfirst=""# initialize a counteri =…

## Tens of thousands of iPhone users hacked via web sites trapped ... for years

Google Project Zero's security researchers have detected a highly sophisticated cyber-surveillance campaign that relied on trapped websites and 0-day flaws.It is heavy. Google has just revealed the details of a particularly sophisticated espionage campaign, which allowed to hack softly iPhone tens of thousands of people. The hacking took place through a "small number of hacked…

## Solution Exercise 21

Exercise 21 Write a program in Python language, which allows you to count the number of vowels in a given string. Example for the string s = 'anticonstitutionally' the program must return the following message: The string anconstitutionally has 9 vowels. Solution # program that determines the number of vowels in a string# define vowels…

## Trojans discovered in Android version of popular CamScanner app

The document scanning application, very famous on Google Play, had integrated a new advertising library that, in reality, contained an encrypted part that could download and install malicious code on the smartphone.The developers of CamScanner, a very popular application on Android with over 100 million downloads, suddenly lost all their karma. Hitherto adored for the…

## Solution Exercise 20

Exercise 20  Write a program in Python language, to exchange the first and last characters of a given string. Solution # define example of string ss = "my-courses.net"# getting the len of string sn = len(s)#getting the first and last caracter of string sfirst = s[0]last = s[n-1]# extracing the sub string by ignoring the…

## Microsoft Surface PCs again victims of serious battery problems

The Surface family would have little problems with endurance. In recent weeks, many users complain about the abnormal behavior of the battery of their devices.It's been a few days now that Microsoft Surface enthusiasts are grumbling on forums and social networks. Many owners of Surface Pro 4, Pro 5, Pro 6 and Laptop 2 are…

## Solution Exercise 18

Exercise 18  Write a program in Python that asks the user to enter a string s and return a message indicating whether the string contains the letter 'a' by indicating its position on the string. Example if the user types the string s = 'language' the program returns: The letter 'a' is in position: 1…