Answer:
The program to this question as follows:
Program:
value = input("Input text value: ") #defining variable value and input value by user
word = value.split() #defining variable word that split value
sort_word = sorted(word) #defining variable using sorted function
unique_word = [] #defining list
for word in sort_word: #loop for matching same value
if word not in unique_word: #checking value
unique_word.append(word) #arrange value using append function
print(' '.join(unique_word)) #print value
Output:
Input text value: Good morning Good afternoon Good evening
Good afternoon evening morning
Explanation:
In the above python code, a value variable is defined that uses input function to input value from the user end, and the word variable is declared, which uses the split method, which split all string values and defines the sort_word method that sorted value in ascending order.
- Then an empty list "unique_word" is defined, which uses the for loop and inside the loop, a conditional statement is used.
- In if block, it matches all value is unique if this is condition is true it will arrange all values and uses the print function to print all value.
Answer: JavaScript is a programming language commonly used in web development. It was originally developed by Netscape as a means to add dynamic and interactive elements to websites. Like server-side scripting languages, such as PHP and ASP, JavaScript code can be inserted anywhere within the HTML of a webpage
Explanation:
Hope this helps
Answer:
- struct Appointment {
- char name[20];
- struct Date d;
- struct Time t;
-
- };
-
- struct Date{
- int year;
- int month;
- int day;
- };
-
- struct Time{
- int hour;
- int minutes;
- int seconds;
- };
Explanation:
To create a struct data type, let use the keyword "struct" and followed with the variable name, <em>Appointment </em>(Line 1).
Next create the string member, <em>name</em> (Line 2).
Next we need to include two other struct data types (Date and Time) as part of the member of the existing struct. To do so, we can try to define the struct for Date (Line 8 - 12) and Time (Line 14 - 18) separately.
At last, we include the struct<em> Date</em> & <em>Time</em> into the <em>Appointment </em>struct (Line 3-4)
I’d say if it is a video it’s A), if there is no video and just sound then E). A and E are the same but it depends on if the video shows the teacher or if it’s just audio. If it’s not that, then I’d go with B) :)
A society where the emphasis shifts from agriculture or the production of food to the production of manufactured goods is known as an Industrialised Society. The Industrialised Society came after the Industrial Revolution. The focus has shifted from a society where the emphasis is on agriculture to where the focus is on mass produced manufactured goods. An Industrialised Society is driven by technology to enable the mass production of goods and uses external energy sources such as coal, oil and water generate electricity to increase the rate of production. <span>
</span>