Skip to main content

Posts

sWAP cASE

  sWAP cASE: You are given a string and your task is to  swap cases . In other words, convert all lowercase letters to uppercase letters and vice versa. For Example: Www.HackerRank.com → wWW.hACKERrANK.COM Pythonist 2 → pYTHONIST 2 Function Description Complete the  swap_case  function in the editor below. swap_case  has the following parameters: string s:  the string to modify Returns string:  the modified string Input Format A single line containing a string  . Sample Input 0 HackerRank.com presents "Pythonist 2". Sample Output 0 hACKERrANK.COM PRESENTS "pYTHONIST 2". def   swap_case ( s ):      result =  s . swapcase ()      return ( result ) if  __ name__  ==  '__main__' :      s  =  input ()      result  =  swap_case ( s )      print ( result )

What is Cryptography?

  What is Cryptography? Cryptography is protecting the confidentiality and integrity of the information without being vulnerable to attackers or threats. It is an encryption technique when ensures the data is only visible to the sender and recipient and no middle man can steal the data and snoop for information. There are three most common types of cryptographic techniques in general. They are – Symmetric key cryptography   – Here the sender and receiver share a similar key and it can be used for both encryption and decryption. Hash functions  – There is no key used, rather a hash value is used to encrypt text, contents, and passwords. Public key cryptography   – In this two different keys such as a public key for encryption and a private key for decryption is used. Only the private key is kept as secret. Encryption Tools and Techniques: There are few tools available for encryption technique. They include – Triple DES – Replaces Data encryption standard(DES) algorit...

Secret Hack Codes for Android Mobile Phones

  Secret Hack Codes for Android Mobile Phones :- Hello friends! Today I will share several  secret hack codes   for Android  Mobile Phones . These   A ndroid codes   will help you   hack android mobiles  in order to explore your phone’s capabilities. Secret hack codes are usually hidden from users to prevent misuse and exploitation. Android is a very new platform so there aren’t many  hack codes for Androids  available. Today I will share all of the  hack codes of Android cellphones  that I know. I have tested these codes on my Samsung Galaxy with the Android OS version 2.2. I am sure these will work on all previous versions. Secret Hack Codes for Android Mobile Phones: 1. Complete Information About Your Phone   *#*#4636#*#*  This code can be used to get some interesting information about your phone and battery. It shows the following 4 menus on the screen: Phone information Battery information (How to maximize o...

HackerRank Tuples Solution in Python

  HackerRank Tuples Solution in Python Task Given an integer,n, and n  space-separated integers as input, create a tuple, t, of those n integers. Then compute and print the result of hash(t). Note:   hash()  is one of the functions in the  __builtins__  module, so it need not be imported. Input Format The first line contains an integer,n, denoting the number of elements in the tuple. The second line contains n space-separated integers describing the elements in tuple t . Output Format Print the result of  hash(t) . Sample Input 0 2 1 2 Sample OUTPUT- 3713081631934410656 n = int(input()) int_list = [int(i) for i in input().split()] int_tuple = tuple(int_list) print(hash(int_tuple))

1. The Complete C Programming Course for Beginners

What is a computer port? | Ports in networking

  What is a computer port? | Ports in networking- What is a port? A port is a virtual point where network connections start and end. Ports are software-based and managed by a computer's operating system . Each port is associated with a specific process or service. Ports allow computers to easily differentiate between different kinds of traffic: emails go to a different port than webpages, for instance, even though both reach a computer over the same Internet connection. What is a port number? Ports are standardized across all network-connected devices, with each port assigned a number . Most ports are reserved for certain protocols — for example, all  Hypertext Transfer Protocol (HTTP) messages go to port 80. While IP addresses enable messages to go to and from specific devices, port numbers allow targeting of specific services or applications within those devices. How do ports make network connections more efficient? Vastly different types of data flo...

Python YouTube Downloader with Pytube

  Python YouTube Downloader with Pytube:- Python YouTube Video Downloader  is an application to download videos from YouTube. This provides users to download videos they need in their devices and watch them offline. Youtube Video Downloader Python Project The Youtube downloader project is a python project. The object of this project is to download any type of video in a fast and easy way from youtube in your device. In this python project, the user has to copy the youtube video URL that they want to download and simply paste that URL in the ‘paste link here’ section and click on the download button, it will start downloading the video. When video downloading finishes, it shows a message ‘downloaded’ popup on the window below the download button. Steps to Develop Python YouTube Downloader Project Prerequisites To implement this project we use the basic concept of python, Tkinter, pytube library. Tkinter  is a standard GUI library and it is one of the easiest ways to build ...