1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
scZoUnD [109]
3 years ago
11

Assume that given, middle and family are three variables of type String that have been assigned values. Write an expression whos

e value is a String consisting of the first character of given followed by a period followed by the first character of middle followed by a period followed by the first character of family followed by a period: in other words, the initials of the name. So if the values of these three variables were "John" "Fitzgerald" "Kennedy", then the expression's value would be "J.F.K.".
Computers and Technology
1 answer:
kirill [66]3 years ago
8 0

Answer:

#program in Python

#variables

given="John"

middle="Fitzgerald"

family="Kennedy"

#find first character of each variable and ptint

print("{}.{}.{}".format(given[0],middle[0],family[0]))

Explanation:

Declare and initialize variables "given" with "John","middle" with "Fitzgerald"  and "family" wit "Kennedy".Print the first character of each variables separated by a "." in between of each character.

Output:

J.F.K  

You might be interested in
Write a Python program string_functions.py that defines several functions. Each function re-implements Python's built-in string
Svetach [21]

Answer:

def length( mystring):

   count = 0

   for i in mystring:

       count += 1

   return count

def reversed( mystring):

   strlist = []

   for i in range(length(mystring)):

       strlist.append(mystring[(length(mystring) - 1) - i])

       txt = "".join(strlist)

   return txt

string = 'Yolanda'

print(reversed(string))

Explanation:

The python module defines two functions 'reversed' and 'length'. The length function counts the number of characters in a string variable while the reversed function reverses the string variable value.

3 0
2 years ago
Please describe the role of games in modern society!
ohaa [14]
It is to Entertainment.
5 0
2 years ago
Read 2 more answers
Jeff is a financial assistant. He needs to create a document for his client that tracks her stocks and calculates the loss or ga
seropon [69]
Spreadsheet. Brainliest answer plz??
4 0
3 years ago
Read 2 more answers
The count function is used to total the values stored in numeric columns.
Dovator [93]

Answer : False.

The function to total the values stored in numeric columns is the SUM function.

5 0
3 years ago
A vast global network that is made up of many smaller interconnected networks is known as:
Galina-37 [17]

The answer is The Internet.   It is a vast global network that is made up of many smaller interconnected networks. It connects to millions of computer units world wide, in which any computer can communicate with any other computer as long as they are both connected to the Internet. It also made access to information and communication easier.

6 0
3 years ago
Read 2 more answers
Other questions:
  • Safety interlock module operates by monitoring the voltage from the
    7·1 answer
  • What are a few benefits of virtualization?<br> How do they benefit ?
    9·1 answer
  • Why do many administrators choose to use a command line interface on a Linux server?
    12·1 answer
  • ______ is using material created by others without obtaining permission from the original authors.
    10·2 answers
  • A resistor bank is connected to a controller with conductor insulation rated 75 °C. The resistors are not used in conjunction wi
    15·1 answer
  • you are concerned with security at your company and want to implement a technology that requires no configuring on the users sid
    15·1 answer
  • highlight the possible risks and problems that should be address during the implementation of information system process
    5·1 answer
  • Drag the right word to it’s definition
    13·1 answer
  • So im new how exactly does this point system work???​
    6·1 answer
  • Can someone help me so I don’t fail this class:(
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!