# Monthly Archives: October 2023

## Python Program Check Armstrong Number

Python Program Check Armstrong Number – An Armstrong number (also known as a narcissistic number or a pluperfect digital invariant) is a number that is equal to the sum of its own digits each raised to the power of the number of digits. In the case of a 3-digit number, for example, the number must… Read More »

## Python Program To Print Nth Fibonacci Series Term

Python Program To Print Nth Fibonacci Series Term – You can write a Python program to print the Nth Fibonacci term using a simple iterative approach. Here’s an example: Source Code def nth_fibonacci(n): if n <= 0: return “N should be a positive integer.” elif n == 1: return 0 elif n == 2: return… Read More »

## Python Function Show N Fibonacci Terms

Python Function Show N Fibonacci Terms – You can write a Python program to print the first n terms of the Fibonacci series using a loop. Here’s a simple example using a for loop: Source Code def fibonacci(n): fib_series = [] a, b = 0, 1 for _ in range(n): fib_series.append(a) a, b = b,… Read More »

## Python Mini Ludo 20 Game in PyQt

Python Mini Ludo 20 Game – This PyQt-based game allows two players to take turns, roll dice, and compete to reach position 20. It provides a simple and interactive way to play a virtual Ludo-style game. Source Code import sys import random from PyQt5.QtWidgets import QApplication, QWidget, QPushButton, QVBoxLayout, QHBoxLayout, QLabel, QMessageBox from PyQt5.QtGui import… Read More »

## Python Colorful Tic Tac Toe Game using PyQt GUI

Python Colorful Tic Tac Toe Game – This version of the Tic Tac Toe program provides a complete and functional game with the ability to check for a winner, highlight the winning row, announce a draw, reset the game, and exit the application. Players can take turns clicking the buttons to play the game. Source… Read More »

## Python Print B Alphabet With Stars

Python Print B Alphabet With Stars – To print the character “B” using asterisks (stars) in a Python program, you can create a pattern for each line of the “B” and then print those lines. Here’s a simple example: Source Code def print_b(): for i in range(7): for j in range(7): if j == 0… Read More »

## Python Program Print Cross of Stars

Python Program Print Cross of Stars – To print a cross of stars in Python, you can use nested loops to control the rows and columns of the cross. Here’s a simple program to print a cross of stars: Source Code # Get the size of the cross from the user – odd number size… Read More »

## Python Program Print Stars Rectangle

Python Program Print Stars Rectangle – To print a rectangle of stars in Python, you can use nested loops similar to the square example, but you’ll need to specify the number of rows and columns for the rectangle. Source code # Get the number of rows and columns from the user rows = int(input(“Enter the… Read More »

## Python Program Print Square Of Stars

Python Program Print Square Of Stars – To print a square of stars in Python, you can use nested loops. Here’s a simple example that allows you to specify the size of the square: Python Source Code # Get the size of the square from the user size = int(input(“Enter the size of the square:… Read More »

## Kotlin Basic Data Types

Kotlin Basic Data Types  – Kotlin employs basic data types to represent fundamental kinds of values and variables. These data types are essential for various programming tasks. Here are the commonly used data types in Kotlin: Numbers: Byte: Represents 8-bit signed integers, which means it can store whole numbers in the range from -128 to… Read More »