Defining Python Functions With Optional Arguments
Defining your own functions is an essential skill for writing clean and effective code. In this tutorial, you’ll explore the techniques you have available for defining Python functions that take optional arguments. When you master Python optional arguments, you’ll be able to define functions that are more powerful and more flexible. In this course, you’ll learn how to: Distinguish between parameters and arguments Define functions with optional arguments and default parameter values Define functions using args and kwargs Deal with […]
Read moreBackground change acc. to the solarterm
About The Project In ancient China, our ancestor named solar terms with such romantic and poetry words which bring the temperature, humidity, sound, smell, taste to me when I read them. These breathtaking photos for different solar terms taking from countdown video in Beijing winter olympics 2022 opening ceremony. Run the code then destop’s background will be set based on the solar term interpreted from the current date. How to Use: download and unzip code install python3 (https://www.python.org/downloads/windows/) double click […]
Read moreThe N Queen is the problem of placing N chess queens on an N×N chessboard so that no two queens attack each other
The N Queen is the problem of placing N chess queens on an N×N chessboard so that no two queens attack each other. For example, following is a solution for 8 Queen problem. The 8 queens problem is simple. On an 8×8 chess board, the queen can move any number of squares horizontally, vertically, and diagonally. Normally, there is one queen per side on the board but for this problem, there are 8. This can be generalized to N queens […]
Read moreA project to find out all the words in a crossword
Solves a sqare(nxn) crossword puzzle. Running Requirements Steps Download the file https://github.com/FumaxIN/Crossword-Solver.git Switch to the directory Run the command How it works Enter the order of crossword(n). Enter each character individualy Crossword table ccreated All the words are now listed Example: boyboyobattreecattontinratoxoatoptopoozyfiz As this is just a side project to practice pandas and numpy, this may not be very efficient and comes with some constraints: Diagonally it can only find one word per diagonal. Diagonal search is limited to Left […]
Read moreSimple daily reminder about upcoming Ramadhan
Simple bot for displaying daily reminder about Islamic praying, especially regarding month of Ramadhan. Technology Stack License The MIT License (MIT) Copyright © 2022 RamadhanCountdown Team Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom […]
Read moreA python program to implement Multiple Linear Regression using the LinearRegression class from sklearn.linear_model library
A very simple python program to implement Multiple Linear Regression using the LinearRegression class from sklearn.linear_model library. The program also does Backward Elimination to determine the best independent variables to fit into the regressor object of the LinearRegression class. The program uses the statsmodels.formula.api library to get the P values of the independent variables. The variables with P values greater than the significant value ( which was set to 0.05 ) are removed. The process is continued till variables with […]
Read moreCreate artistic visualisations with your exercise data (Python version)
Create artistic visualisations with your exercise data (Python version). This is a port of the R strava package to Python. Examples Facets A plot of activities as small multiples. The concept behind this plot was originally inspired by Sisu. How to use Bulk export from Strava The process for downloading data is described on the Strava website here: [https://support.strava.com/hc/en-us/articles/216918437-Exporting-your-Data-and-Bulk-Export], but in essence, do the following: Log in to Strava Select “Settings” from the main drop-down menu at top right of […]
Read moreLecture transcript question extraction
Setup virtualenv venv source venv/bin/activate pip install -r requirements.txt For the “Lecture Transcript Extractor” see the separate readme Formatting We use black Updateing DB rm db.sqlite3 rm -r seapanapp/migrations/ ./manage.py makemigrations seapanapp ./manage.py migrate python extract_questions.py Generating files python save_counts.py python extract_questions.py GitHub View Github
Read more