python

How to truncate number to integer in python

Python program to truncate a number to integer. Python provides math.trunc and int() methods to truncate numbers. In this post, I will show you how to use math.trunc and int() with example.

Read
ios

How to create a basic tableview in iOS swift in XCode

Learn to create a basic tableview in iOS swift in XCode. We will use storyboard to create the tableview with a list of items. Learn how to create the UI in XCode.

Read
typescript

3 different ways to split a string in typescript

Learn how we can split a string in typescript. We will learn three different ways to split a string in typescript. We can use the split method of string to split a string in typescript.

Read
swift

2 ways to find the first and last character of a string in Swift

Swift program to find the first and last character of a string in swift in two different ways. We can use first, last properties or startIndex, endIndex to find the first and last character of a swift string.

Read
python

Python program to print a mirrored right-angle star triangle

Python program to print a mirrored right angled triangle using star or any other character. Take the height of the triangle as input and print it.

Read
python

How to create a linked list in python

Python program to create a linked list. This program will show you how to create a linked list, how to add node and print all nodes in python with example.

Read
python

Find all prime numbers in a range in python

Python program to find all prime numbers in a range. The program will take the first and the last number of the range as input from the user and print out all prime numbers in that range.

Read
python

How to check if a triangle is valid or not in python

Python program to check if a triangle is valid or not. The program will take the angles as input from the user and print out a message if it is valid or not.

Read
python

Difference between python append() and extend() methods of list

Learn the difference between append() and extend() methods of python list. Both methods are used to add items to a list. This post will show you the difference between them.

Read
Android

Adapter callback in Android using lambda function of Kotlin

Kotlin program to create adapter callback in Android using lambda function. Lambda function makes it easy to implement adapter callback.

Read