word1 = input("Enter a word: ")
word2 = input("Enter a word: ")
print(word1 + " " + word2)
I hope this helps!
Answer:
See attachment for flowchart
Explanation:
The explanation is as follows
1. Start
2. Get input for principal, time and rate
3. Calculate Interest using Interest = Principal * Rate * Time/100
4. Print Interest
5. Stop
Answer:
Following are the answer to this question:
Explanation:
As we know, that Python is based on Oop's language, it allows programmers to decide, whether method or classes satisfy the requirements.
- It's an obvious benefit, in which the system tests the functions, and prevent adverse effects, and clear the syntaxes, which makes them readable for such methods.
- All the framework uses the python language, that will be used to overcome most every coding task like Mobile apps, desktop apps, data analyses, scripting, automation of tasks, etc.
Answer:
Here is the Python program:
stock_prices = input().split() #to take input and splits it into a list
for price in stock_prices: #iterates through stock_prices
print("$",price) #prints each value of stock_prices with a dollar sign
Explanation:
The program is well explained in the attached comments. I will explain the logic of the program with the help of an example:
Suppose the user enters the following input as stock_prices values
34.62 76.30 85.05
input() method is used to take input from user
split() method is used to split or break this input string and returns a list of strings as:
['34.62', '76.30', '85.05']
Now the statement for price in stock_prices: iterates through each item of the list and print("$",price) prints each value of list with a dollar sign on the output screen as:
$ 34.62
$ 76.30
$ 85.05