Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: How to reject "invalid" input in Python3.7
Post: RE: How to reject "invalid" input in Python3.7

What do you mean with invalid input ? You can validate the type of the input, like we do in the first script, we validated that the type of input must be a float, or you can validate that the input is...
FranSPG Homework 4 10,229 Feb-08-2019, 12:52 PM
    Thread: How to reject "invalid" input in Python3.7
Post: RE: How to reject "invalid" input in Python3.7

I see an indentation error there. You have to be careful with the indentations. Try this solution while True: try: height = float(input("Input your height in meters: ")) weight =...
FranSPG Homework 4 10,229 Feb-08-2019, 12:02 PM
    Thread: Grouping Integers
Post: RE: Grouping Integers

Maybe this could help you import pandas as pd data = { 'string': ['s', 'x', 's', 's', 's', 'x', 'x', 'x', 's', 'x'], 'num': [1,2,3,1,2,3,1,2,3,1] } df = pd.DataFrame.from_dict(data) count ...
FranSPG Data Science 4 2,678 Feb-08-2019, 11:12 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020