[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/sci/ - Science & Math

Search:


View post   

>> No.5090162 [View]
File: 67 KB, 471x694, 1330199386872.jpg [View same] [iqdb] [saucenao] [google]
5090162

total = 0
month = raw_input('Print the current month in all underscore: ')
day = input('Print dya of the month with integers: ')
try:
number = int(day)
except ValueError:
print(day, "is not an integer.")
else:
if month == "january":
total + day
print month, day, 'is the day #', total
elif month == "february":
total = 31 + day
print month, day, 'is the day #', total
else:
print 'you misspelled the month'


why doesn't this check is the day input is integer or not. it just crashes. WTF

>> No.4403884 [View]
File: 67 KB, 471x694, 1306277361319.jpg [View same] [iqdb] [saucenao] [google]
4403884

This is a very stupid question I'm sure but I just need to know. The Photoelectric Effect shows that when light with a high enough frequency hits a metal that electrons can be emitted and when light hits a gas photons are emitted. So can photons also be emitted from a metal and vice versa for a gas?

Navigation
View posts[+24][+48][+96]