Get Mystery Box with random crypto!

cσ∂ιηg cυℓтs

Logo of telegram channel codingcults — cσ∂ιηg cυℓтs C
Logo of telegram channel codingcults — cσ∂ιηg cυℓтs
Channel address: @codingcults
Categories: Technologies
Language: English
Subscribers: 364
Description from channel

Hello! And welcome to Coding Cults! Here we try to teach about programming and coding!
⭕️ DISCUSSION GROUP - @THEHOGWARTSSUPPORTGROUP
💠 𝐏𝐎𝐖𝐄𝐑𝐄𝐃 𝐁𝐘 💠
➥ @TheHogwartsNetwork

Ratings & Reviews

4.33

3 reviews

Reviews can be left only by registered users. All reviews are moderated by admins.

5 stars

1

4 stars

2

3 stars

0

2 stars

0

1 stars

0


The latest Messages 3

2021-03-25 11:01:43 ABOUT PYTHON TKINTER MODULE

Tkinter is the standard GUI library for Python. Python when combined with Tkinter provides a fast and easy way to create GUI applications. Tkinter provides a powerful object-oriented interface to the Tk GUI toolkit.

for more theory i am referring you to this site

CLICK HERE


so what you can do with tkinter???


You can make GUI applications with it. Tkinter provides a fast and easy way to create GUI applications.


In our next post i will give details about how to use and code in python tkinter module
1.4K viewsedited  08:01
Open / Comment
2021-03-23 10:06:37 DICE ROLLING GAME

import
random
while True:
print(''' 1. roll the dice 2. exit ''')
user = int(input("what you want to do\n"))
if user==1:
number = random.randint(1,6)
print(number)
else:
break

You can modify it with your own ideas

credits - @Nileshbansal24
1.1K views07:06
Open / Comment
2021-03-23 10:00:33 SIMPLE OTP GENERATOR

import random
x = "1234567890"
OTP = "".join(random.sample(x, 4))
print(OTP)

a very simple program to generate random otp in python

You can modify it with your own ideas

by - @Nileshbansal24
1.1K views07:00
Open / Comment
2021-03-21 15:37:20 What are identifiers

A Python identifier is a name used to identify a variable, function, class, module or other object.

What are keywords

Keywords are the reserved words in Python.

We cannot use a keyword as a variable name, function name or any other identifier. They are used to define the syntax and structure of the Python language.

In Python, keywords are case sensitive.

There are 33 keywords in Python


An identifier cannot start with a digit.


Keywords cannot be used as identifiers.

like ,
import is a python keyword
you can't use it as:

import = 1

it will give error
File "", line 1
import = 1
^
SyntaxError: invalid syntax

We also cannot use special symbols like !, @, #, $, % etc. in an identifier.

CLICK HERE TO SEE AWESOME PROJECTS IDEA WHICH YOU CAN DEVELOP FROM PYTHON RANDOM MODULE.

IF YOU WANT TO LEARN HACKING AND WANT CONTENT RELATED TO IT THEN JOIN @hackinghunters


SHARE AND SUPPORT US

- @Nileshbansal24
1.0K viewsedited  12:37
Open / Comment
2021-03-20 16:16:45 Hope, you guys learnt well from last post

So, in this post i am giving source code of an awesome game which i still play in my school

first let me explain about while loops:

The while loop in Python is used to iterate over a block of code as long as the test expression (condition) is true. We generally use this loop when we don't know the number of times to iterate beforehand.

In simple words, it gonna relate to the normal english and generally used when we just don't know the number of time to iterate


Name - Handcricket

import random

balls = 0
count = True
total = 0
totl = 0
count = 1
while (count, balls, 1):
user = int(input("Enter number from 1 to 10 \n"))
print("You've inputed", user, "\n")
User2 = (random.randint(1, 10))
print("PLAYER2 choose", User2, "\n")


#LOST
if (User2 == user):
print("Your Innings OVER. PLAYER2 also choose a", User2, "\n")
break
if(user > 10):
print("You Should select 1-10")
print("YOU ARE OUT")
print("PLAYER2's BATTING")
break
if (user < 1):
print("You Should select 1-10")
print("YOU ARE OUT")
print("PLAYER2's BATTING")
break
else:
total = total + user
print("Your total is now", total)


while (count, balls, 1):
user = int(input("Enter number from 1 to 10 \n"))
print("You've inputed", user, "\n")
User21 = (random.randint(1, 10))
print("PLAYER2 choose", User21, "\n")


#WON
if(user == User21):
print("PLAYER2 is OUT", "\n")
break
else:
totl = totl + User21
print("PLAYER2 total is now", totl)

SAVE IT AS ANYNAMEYOUWANT.py


and play this awesome game
and modify it with your own ideas

Here you can see the proper implement of basics of random module

ENJOY

SHARE AND SUPPORT US

CREDITS - @Nileshbansal24
816 views13:16
Open / Comment
2021-03-19 10:31:03 A module is a file containing Python definitions and statements. The file name is the module name with the suffix .py appended. Within a module, the module’s name (as a string) is available as the value of the global variable name


You can get a very detailed info from here


So today we are discussion about "random" module in python

This module implements pseudo-random number generators for various distributions.

For integers, there is uniform selection from a range. For sequences, there is uniform selection of a random element, a function to generate a random permutation of a list in-place, and a function for random sampling without replacement.

On the real line, there are functions to compute uniform, normal (Gaussian), lognormal, negative exponential, gamma, and beta distributions. For generating distributions of angles, the von Mises distribution is available.

Almost all module functions depend on the basic function random(), which generates a random float uniformly in the semi-open range [0.0, 1.0). Python uses the Mersenne Twister as the core generator. It produces 53-bit precision floats and has a period of 2**19937-1. The underlying implementation in C is both fast and threadsafe. The Mersenne Twister is one of the most extensively tested random number generators in existence. However, being completely deterministic, it is not suitable for all purposes, and is completely unsuitable for cryptographic purposes.


for details info head over to this site

The random module also provides the SystemRandom class which uses the system function os.urandom() to generate random numbers from sources provided by the operating system.

So, lets see what you can develop using random module

You can build own password generator
Own otp generator own toss system

Even own dice system and make a game like ludo

FOR A DETAILED explanation must check out this site https://www.w3schools.com/python/module_random.asp


PASSWORD GENERATOR


import random
print("Your Generated Password is")
x = "abcdefghijklmnopqrstuvwxyz@#$-/*-+"

password = "".join(random.sample(x, 10))
print(password)

Its a very simple password generator in python
You can use if else statements to make it more attractive


HAPPY CODING,

regards- @nileshbansal24
626 views07:31
Open / Comment