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 Check Armstrong Number »

Loading

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 Program To Print Nth Fibonacci Series Term »

Loading

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 Function Show N Fibonacci Terms »

Loading

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 Mini Ludo 20 Game in PyQt »

Loading

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 Colorful Tic Tac Toe Game using PyQt GUI »

Loading

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: Kotlin Basic Data Types »

Loading