Epython Lab
6.11K subscribers
680 photos
31 videos
104 files
1.31K links
Welcome to Epython Lab, where you can get resources to learn, one-on-one trainings on machine learning, business analytics, and Python, and solutions for business problems.

Buy ads: https://telega.io/c/epythonlab
Download Telegram
#Q1

#DataScience #Python #String

You can split up your string into separate substrings according to the presence of whitespace. This creates a list of strings, where a 'list' is simply a container for the strings. Lists are Python objects in thier own right and we will discuss further in the next time.

In the other way we can also combine a list of strings and create a single long text.

Q: what functions we use to separate and combine strings? Explain using examples.

Post your solution @pythonEthBot

#PreventCOVID19
#Q2
Collection data types

As well as the simple types, Python has several common collection data types, tuples, lists, sets and dictionaries, that provide a means of bringing multiple items together into a container.

Can you define each of the collection data types with simple example?

Post your solution @pythonEthBot

#DataScience #DataCollection
#PreventCOVID19
#Solution for #Assignment by @MINtaa911

You can forward your feedback via @pyDiscussion

#Guess the number
from random import randint
def guess_number():
num = randint(0,20)
guess = int(input("Enter your guess number: "))
while(num != guess):
if(guess > num):
print("Your guess is too high")
elif(guess < num):
print("your guess is too low")
else:
break
guess = int(input("Enter your guess number: "))

print("you win")

guess_number()

#LearnDataScience #LearnPython #StayHome #PreventCOVId19
Another #Solution for #Assignment by @Amalright

You can forward your feedback via @pyDiscussion

from random import*

Def fun_game(number_chosen):
data=randrange(0,20)
if(nuber_chosen> data):
print("too much")
elif(nuber_chosen < data):
print("too low")
else:
print("correct answer :")

J = 1
While(j !=0)
choice =int(input("Enter 1 to continue"))
if(choice ==1):
choice =int(input("Enter your try"))
fun_game(choice)
else:
j =0

#StayHome #PreventCOVId19 #LearnPython #LearnDataScience #LearnRandomNumber
Python is a programming language. Like other languages, it gives us a way to communicate ideas. In the case of a programming language, these ideas are “commands” that people use to communicate with a computer!

We convey our commands to the computer by writing them in a text file using a programming language. These files are called programs. Running a program means telling a computer to read the text file, translate it to the set of operations that it understands, and perform those actions.

#LearnPython #LearnDataAnalysis #StayHome #PreventCOVID19