Skip to content

gustanik/CNA340-1

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 

Repository files navigation

master

Project Title pyhton

The squirrels in Palo Alto spend most of the day playing depand on the weather when you enter the how hot is the weather in number it will tell you squirrels is playing if not boolean True or False

The squirrels in Palo Alto spend most of the day playing. In particular, they play if the temperature is between 60 and 90 (inclusive). Unless it is summer, then the upper limit is 100 instead of 90. Given an int temperature and a boolean is_summer, return True if the squirrels play and False otherwise.

turtlesWoComments_revised.py

This project introduces a simple Python code that uses the turtle module to draw a diagram.The project aims to teach you where to to place in the appropriate places.

master

master squirrel_play(70, False) → True squirrel_play(95, False) → False squirrel_play(95, True) → True

These instructions will tell you how to run this .py file on your local machine for experimentation. master

master

######### Prerequisit weather condation number of days temperature

Running

when you enter the number of degree fahreanheit you will see summer or other

def squirrel_play(temp, is_summer): def alarm_clock(day, vacation):

weekend = "06"
weekdays = "12345"
if vacation:
    if str(day) in weekend:
        return "off"
    else:
        return "10:00"
else:
    if str(day) in weekend:
        return "10:00"
    else:
        return "7:00"

#####ef squirrel_play(temp, is_summer): return temp in range(60, 101 if is_summer else 91)

def near_ten(num):

       a = num % 10
       if  (10 - (10-a)) <= 2 or (10 - a) <= 2:
            return True
       else:
               return False

======= turtlesWoComments_revised requires Python. The instructions below will install the prerequisites.

Check if Python is installed:
	In the search bar in Windows type CMD and click the command prompt icon. 
	Type Python after the prompt and click enter.
go to https://www.python.org/downloads/ to download and install the latest version

Running

Once installed you can run the program the following way master

double click the .py file and open with selected app
in pycharm select file open and choose file.

######Add any additional ways to run the program below master paycharm

Thanks Zack

======= in pycharm select file open and choose file.


Thanks

Thank you to the Python CNA class for this project and the github community for allowing me to make it available to you. master

About

Code and Work related to CNA340 IT Project Management

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors