Skip to content
  • About
Search
Close

PyTwok

Category: Python

Printing element of list using while and for loop

June 1, 2020 Rohan JadhavLeave a comment

In this blog, we will use while and for loop to display every elements of a list. For while loop, we need to make use of len() function. Read More »

Appending new element into a list

June 1, 2020 Rohan JadhavLeave a comment

Elements in a list are changeable or mutable that means elements can be deleted, adding new element at the end of a list or updating current value of element with new one. Read More »

Displaying last element from a list

June 1, 2020 Rohan JadhavLeave a comment

List is a collection of items which are arranged in ordered manner. We can access each element of a list using index number. Each element in a list has an index number. This index number starts with 0. First element in a list will have index number 0, second element will have index number 1 and so on.Read More »

Creating simple list

May 31, 2020 Rohan JadhavLeave a comment

In this blog, we will create a simple list. Displaying complete list and first element of a list.Read More »

String Repetition

May 31, 2020 Rohan JadhavLeave a comment

We can use * operator to repeat string n number of times. Below is the syntax for repeating string. Read More »

List in Python

May 31, 2020 Rohan JadhavLeave a comment

List is use to store group of items or elements. List is similar to an array but there is a difference between them. Array is use to store elements of same data type whereas list is use to store elements of different data types.Read More »

Finding positive and negative number

May 30, 2020 Rohan JadhavLeave a comment

We can use python language to create a simple program that identifies whether theĀ  number is positive or negative. Read More »

Working with case of string

May 30, 2020 Rohan JadhavLeave a comment
There are 4 methods in Python that works with case of a string.

Read More »

Display last character of a string

May 30, 2020May 30, 2020 Rohan JadhavLeave a comment
In this blog, we will create a python program to display last character in a string.
Each character in a string can be accessed by its index number. Below is the string with index position of each character.

Read More »

Posts navigation

Older Posts
Newer Posts

Categories

Category Cloud

Conditional Programming DNS Kali Linux Networking Project Python

Tags

BasicPython CCNA Commands Conditional Programming DNS DNSdumpster IF ELSE kalilinux List Networking nmap PingSweep Projects Python String TCPSCAN
Blog at WordPress.com.
Back to top
PyTwok
Blog at WordPress.com.
Cancel