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
ale4655 [162]
3 years ago
15

Write a program that initializes a string variable and prints the first three characters, followed by three periods, and then th

e last three characters. For example, if the string is initialized to "Mississippi", then print Mis...ppi.
Computers and Technology
1 answer:
d1i1m1o1n [39]3 years ago
8 0

firstly we have to initialize the variable, means to give variable a value and then print the statement

string = "fahadisahadam"

print(string[:3]+"..."+string[-3:])

string is a data type that contains two or more characters.

means the string is fahadisahadam so the print will print first three characters. follow by three periods(...) and then last three characters.

The output will be:

fah...dam

You might be interested in
100 POINTS!!!!!!
Veronika [31]

Answer:

The fundamental limitation of symmetric (secret key) encryption is ... how do two parties (we may as well assume they are Alice and Bob) agree on a key? In order for Alice and Bob to communicate securely they need to agree on a secret key. In order to agree on a secret key, they need to be able to communicate securely. In terms of the pillars of IA, To provide CONFIDENTIALITY, a secret key must first be shared. But to initially share the key, you must already have CONFIDENTIALITY. It's a whole chicken-and-egg problem.

This problem is especially common in the digital age. We constantly end up at websites with whom we decide we want to communicate securely (like online stores) but with whom we there is not really an option to communicate "offline" to agree on some kind of secret key. In fact, it's usually all done automatically browser-to-server, and for the browser and server there's not even a concept of "offline" — they only exist online. We need to be able to establish secure communications over an insecure channel. Symmetric (secret key) encryption can't do this for us.

Asymmetric (Public-key) Encryption

Yet one more reason I'm barred from speaking at crypto conferences.

xkcd.com/177/In asymmetric (public key) cryptography, both communicating parties (i.e. both Alice and Bob) have two keys of their own — just to be clear, that's four keys total. Each party has their own public key, which they share with the world, and their own private key which they ... well, which they keep private, of course but, more than that, which they keep as a closely guarded secret. The magic of public key cryptography is that a message encrypted with the public key can only be decrypted with the private key. Alice will encrypt her message with Bob's public key, and even though Eve knows she used Bob's public key, and even though Eve knows Bob's public key herself, she is unable to decrypt the message. Only Bob, using his secret key, can decrypt the message ... assuming he's kept it secret, of course.

Explanation:

3 0
2 years ago
Which is the most important reason you should properly cite information that you obtain from an Internet search? Question 2 opti
Pepsi [2]
It is to avoid plagiarizing someone else's work
3 0
3 years ago
HELP ASAP!!! 100 POINTS
malfutka [58]

Answer:

Below.

Explanation:

Up until a few weeks ago, I too was not aware of the extremely rich and entertaining variety of anime that existed. My first encounter with anime (outside Saturday morning cartoons) was when I was about nine years old. My mom took my siblings and I to see the Hayao Miyazaki film “Spirited Away.” At the time, I didn’t enjoy it at all. I thought it was boring, confusing, weird and creepy. Why? Because I was a child, and “Spirited Away” is not really a children’s film. Like many anime feature films, it is an experience better appreciated by mature viewers.

That isn’t to say that anime shouldn’t be viewed by children at all. If kids grow up watching anime, that’s fine. The problem for many kids is that they are raised on American animation with simple plots, flat characters and cheap comic relief. Then, when they encounter a Japanese animation with complex character development, deep themes, subtle dialogue and thought-provoking stories, they find it boring, as I did with “Spirited Away.”

In the course of the last several weeks, however, I have gone on a journey to discover some of the best that anime has to offer. As a student, I don’t have time to devote to an ongoing anime series, so this article will deal exclusively with feature films.

Going into this movie marathon, I predicted that I would gain a better appreciation for anime. But I had no idea how powerful and entertaining these films would be. There wasn’t one that I disliked, and many of them instantly joined my list of all-time favorite movies as soon as the credits rolled. All these movies featured not only beautiful animation, but also interesting and authentic characters, as well as expertly crafted narratives.

One of the misconceptions about anime is that it all looks the same. This couldn’t be further from the truth. Although anime as a genre is easily recognizable, there is a wide variety of styles and techniques that can give each film a unique look and feel.

Take, for example, “The Tale of the Princess Kaguya.” The film is an adaptation of a Japanese folktale. The studio opted to go with a raw animation style, with lots of watercolors and negative space, in order to invoke the aesthetic of an ancient scroll. It’s a very minimalist style, but it works beautifully, and it allows the director to portray the story in a way that wouldn’t be possible with CGI animation.

In one scene, a character grows increasingly upset, and as she does, the animation itself becomes more and more wild and untamed until it eventually devolves into a mess of scribbles. Very few films are able to so successfully intertwine the content of their film with the form in which they present it.

A lot of people might say they prefer American animation because “it looks more realistic.” In Japanese animation, they say, the characters all have silly, exaggerated faces and features. Really? Let’s do a side-by-side comparison.

These two films, “When Marnie Was There” and “Frozen,” came out within one year of each other. Frozen was one of the most popular American animated films in years. “When Marnie Was There” is (maybe) the last film to be produced by anime legends Studio Ghibli.

Looking at the two, which is more realistic? Well, it depends on what you mean by the word ‘realistic.’ If realistic to you means how close an image comes to being photo-realistic (indistinguishable from real life) then obviously “Frozen” is the more realistic of the two. On the other hand, I look at this and see one image that was made by a computer program (with some human help) and another image that appears to have been drawn by hand. For me, at least, the image on the right has a human quality to it that makes it much more “real” than the image on the left, which can easily be reduced to a bunch of ones and zeroes.

Don’t get me wrong. I enjoy Disney and Pixar movies as much as the next guy. But to dismiss anime for not “keeping up” with American animation just doesn’t make sense. Japan hasn’t undertaken the quest for the unattainable photo-realism, not because they’re incapable, but because they know that traditional animation as an art form doesn’t need to wholly rely on computers to be beautiful and engaging.

A common trend amongst all the anime films I watched is that the characters are believable. They do things that normal, everyday people would do. They say things that real people do. Their actions and choices make sense. And because they are so believable, they become relatable. As the movies progress, you really feel a connection with these characters.

7 0
3 years ago
Read 2 more answers
Can someone tell me what all of these are?
Allisa [31]

Answer:

parts of a camera

Explanation:

5 0
3 years ago
Your company leases a very fast internet connection and pays for it based on usage. You have been asked by the company president
azamat

Answer:

c. Install a proxy server

Explanation:

In computing a proxy server is implemented as a middle 'man' between the user and the internet. It will hence behave as a gateway that will seperate users from the websites that they browse. The major importance of a proxy server is enforcing security, however it can also act as a web filter allowing organizations to restrict access to certain websites. So when an organization or a school wishes to prevent access to certain sites a proxy server will be implemented, in the question scenario this web filter feature can be used to save cost associated with visiting sites not relevant to the organization's objectives

7 0
3 years ago
Other questions:
  • A windows host sends a tcp segment with source port number 1200 and destination port number 25. the sending host is a(n) _______
    10·1 answer
  • Bridge building is the business of: pure scientists, civil servants, or civil engineers?
    11·2 answers
  • What are candid shots? what are posed shots?
    13·1 answer
  • What is alfred anderson in creole?
    6·1 answer
  • What is the next line?
    6·2 answers
  • PLEASE HURRY!!!!
    8·2 answers
  • Which of the following is input devices? (a)Scanner (b) Keyboard (c) Both a and b (d) Plotter​
    5·1 answer
  • What is the purpose of extent in lines in engineering drawing
    12·1 answer
  • What are some examples of productions categorized as non-broadcast productions?
    6·1 answer
  • Find examples of conic sections in art and architecture. Visit Web sites to find pictures of artwork or buildings that illustrat
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!